Unit of measures are a great example of what a type system can do, and something not enough languages support. F#[1] and Scala[2] are two that I know of that do support UOMs. Like you, I haven't had the need to use them in the domains I work in, but I imagine that they would be invaluable in certain contexts.[1] https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...
[2] https://github.com/typelevel/squants
throwawaymaths|3 years ago
Chinjut|3 years ago
docandrew|3 years ago
leephillips|3 years ago