Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thankfully some folks already thought that out, one possible library,

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



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: