3 ms·
F# is in the same category of statically typed functional languages, and it has units of measure: https://learn.microsoft.com/en-us/dotnet/fsharp/language-refer
by actuallyalys 3y ago
F# is in the same category of statically typed functional languages, and it has units of measure: https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/units-of-measure https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref.... I'm not sure whether it has that level of unit polymorphism, although you can make functions generic over any unit of measure.
- paholg 3y agoRust as well. There are at least a few libraries to do it, but I'll link the one I wrote: https://crates.io/crates/dimensioned https://crates.io/crates/dimensioned