4 ms·
F# supports units of measure: https://fsharpforfunandprofit.com/posts/units-of-measure/ https://fsharpforfunandprofit.com/posts/units-of-measure/
by muraiki 10y ago
F# supports units of measure: https://fsharpforfunandprofit.com/posts/units-of-measure/ https://fsharpforfunandprofit.com/posts/units-of-measure/
- mikulas_florek 10y agoThat looks useful. I do not know F#, but can't you still use ordinary float and have the same bug?
- kazagistar 10y agoSure, unit wrappers are much more like "memory safety checks" in C, in that they are incomplete and can be bypassed. In that sense, the war against raw types is necessarily a cultural one.