Hacker News new | ask | show | jobs
by klemola 1867 days ago
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...