3 ms·
Of course F# has units-of-measure built-in
by thelazydogsback 7y ago
Of course F# has units-of-measure built-in
- louthy 7y agoErm, no it doesn't. It has the ability to define units of measure, but the language doesn't have UoM built-in. There are UoM in FSharp.Core [1], so it's the same as including it from a library. Obviously F#’s first class support for UoM is better than my implementation, but for all intents and purposes the behaviour is the same. [1] https://github.com/fsharp/fsharp/blob/master/src/fsharp/FSharp.Core/SI.fs https://github.com/fsharp/fsharp/blob/master/src/fsharp/FSha...
- yawaramin 7y agoMost people would consider 'distributed with F#' as being equivalent to 'built in to F#'. Actually it's even cooler that the SI units are in the standard library rather than baked into the language.
- thelazydogsback 7y agoIt's pretty clear what I meant - that F# has support of UoM's. Where the canned ones live is is neither here nor there. I have seen your lib before - nice work.