Closed tarcieri closed 1 year ago
I vaguely recall that at the time the traits were first written, there were limitations on how the associated constants could be either constructed or used? I don't recall the specifics, but the course of action depends on several things:
I've opened #94 so we can test the first bullet point.
Right now
Field::zero()
andField::one()
are static methods of theField
trait.If they were instead associated constants, e.g.
Field::ZERO
/Field::ONE
, they can be used inconst
contexts such as defining other constants: