I wonder from purely language-design point of view which "features" (semantically and syntactically) an "implementation" of SI units would require.
Which "functionality" is generally expected if someone claims that a language has great support for units of measurements?
- Just something like special literals or syntactic sugar?
- Special conventions which make units typesafe (but without costly runtime wrapping)?
- A special math mode for computations with fractions?
- Automatic conversions and coercion between units?
For instance F# has integrated support for units of measurements in the language. How does it improve over e. g. a library for Java?
Which features should be built into the languages to improve usability of units? Which features are not necessarily related to units of measurement but make an implementation nicer?