Hacker News new | ask | show | jobs
by pjmlp 249 days ago
Thankfully some folks already thought that out, one possible library,

https://mpusz.github.io/mp-units/latest/

1 comments

I have seen several versions. I wrote two different ones myself - both not in use because the real world of units turned out far more complex. the multiplication thing is one simple example of the issuses but not a complete list