Re:Resources about programming practices for writing safety-...
by dkersten on Tuesday March 07, 2017 @08:48AM
(#13810241)
The Frink[1] language has units like this built in. Its pretty cool what you can do with it. I definitely agree that doing that or, at least, something like your code samples, is a good bug-avoidance idea.
[1] https://frinklang.org/