3 ms·
Funny it's not more common in high-level languages. You have types for non-negative whole numbers, whole numbers, larger whole numbers, not-whole numbers but im
by scotty79 10y ago
Funny it's not more common in high-level languages. You have types for non-negative whole numbers, whole numbers, larger whole numbers, not-whole numbers but imprecise, precise non-whole numbers but you usually can't tell compiler that one is in meters and one is in kilos and it shouldn't allow you to add one to the other.
Frink is one of the coolest things I've seen in languages development.
- happyslobro 10y agoThis is what I never got about the Java and C++ type systems. If you claim to value static typing, why are you not typedefing your generic floats / doubles to meters and seconds and stuff? It looks like there is a thorough implementation of standard units in Boost ( http://www.boost.org/doc/libs/1_55_0/doc/html/boost_units/Units.html http://www.boost.org/doc/libs/1_55_0/doc/html/boost_units/Un...).