News for hackers. Stuff that matters.
Re:NASA has a list of 10 rules for software development by einpoklum on Saturday February 15, 2025 @06:06PM (#43063374)
In C++, there are a few very nice libraries for computation with units, e.g.:

https://github.com/mpusz/mp-units

which does all sorts of checking, allows arithmetic with proper accounting for units and so on. But yes, the basic notion is wrapping things in structs which can't be simply assigned to each other.

There are no comments on this comment yet.