4 ms·
I've seen a few before, and a quick search yielded a bunch for me, right off the bat. By no means exhaustive: Julia: https://github.com/PainterQubits/Unitful.j
by cmrdporcupine 6y ago
I've seen a few before, and a quick search yielded a bunch for me, right off the bat. By no means exhaustive:
Julia: https://github.com/PainterQubits/Unitful.jl https://github.com/PainterQubits/Unitful.jl
Python: https://pint.readthedocs.io/en/0.6/ https://pint.readthedocs.io/en/0.6/
C++: https://github.com/nholthaus/units https://github.com/nholthaus/units
etc.
And yes, it has always struck me as strange that date/time/calendar utilities are standard as canonical functionality shipped with language distributions, but units are not.
- scott_s 6y agoBoost also has a C++ library: https://www.boost.org/doc/libs/1_65_0/doc/html/boost_units/Examples.html#boost_units.Examples.DimensionExample https://www.boost.org/doc/libs/1_65_0/doc/html/boost_units/E...