3 ms·
> I had no idea. That is crazy cool. Do you have any recommended resources for learning how this works behind the scenes? http://fsharpforfunandprofit.com/post
by louthy 12y ago
> I had no idea. That is crazy cool. Do you have any recommended resources for learning how this works behind the scenes?
http://fsharpforfunandprofit.com/posts/units-of-measure/ http://fsharpforfunandprofit.com/posts/units-of-measure/
The units are lost at runtime and are used for static type checking only. So if you were to consume an F# lib from C# (for example) then you wouldn't have a such strong system. Hopefully one day they'll end up as part of the CLR so it can be enforced at runtime too.