| ▲ | athrowaway3z a day ago | |
Anything without range analysis is not worth it. Note that: NonZerof32 * NonZerof32 -> NonNanf32 NonZerof32::from_bits(1) multiplied with itself is zero. Doing range analysis needs the language to support it at compile time, and the dev to specify what range it is. The only 'stable' thing i can think of is a type for 'greater-eq-one' using only addition and multiplication. Practically every other operation breaks most of the type knowledge up to that point. | ||