Comment Comment by klemola The Elm programming language ecosystem has the great "elm-units" library, which prevents one from mixing illogical units, and it produces logical unit combinations:https://package.elm-lang.org/packages/ianmackenzie/elm-units......which is used in other packages where unit type safety is important, such as elm-geometry:https://package.elm-lang.org/packages/ianmackenzie/elm-geome... parent klemola 5 years ago
https://package.elm-lang.org/packages/ianmackenzie/elm-units...
...which is used in other packages where unit type safety is important, such as elm-geometry:
https://package.elm-lang.org/packages/ianmackenzie/elm-geome...