3 ms·
I _really_, _really_ like F#'s 'unit of measure': https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/units-of-measure https://docs.microsoft.com/
by ReleaseCandidat 5y ago
I _really_, _really_ like F#'s 'unit of measure':
https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/units-of-measure https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...
- fluid_ident 5y agoThis. I really miss it when working outside of F#. I work on scientific code bases with a lot of different units and have been burned by improper conversions. Even with a high automated test coverage and good naming practices, such problems can go undetected.
- ok123456 5y agoIt's a big omission that it doesn't support fractional units. These come up in things like fracture mechanics for stress intensity.
- ReleaseCandidat 5y agoAre you talking about ksi√in or MPa√m? That is not a problem.
- ok123456 5y agoF#'s units don't support 1/2 dimensions. So you can't do dimensional analysis through the type system.