3 ms·
> Wrapping something in a type doesn't magically change its value. It changes its meaning and operations. `x : Angle = 90` and friends should just be illegal.
by kadoban 4y ago
> Wrapping something in a type doesn't magically change its value.
It changes its meaning and operations.
`x : Angle = 90` and friends should just be illegal. `x : Angle = Degrees(90)` is better. Then the programmer can use whatever is convenient.