News for hackers. Stuff that matters.
Re:Let the Type System do the Work by jarrett on Monday April 21, 2014 @02:34PM (#7622751)
You're quite right about the limitations imposed when you make your own dimensional types like that. It turns out the problem isn't trivial. Which is why I prefer to use a library like Dimensional. With Dimensional, you get plenty of units out-of-the-box, you can define your own if needed, and you can perform arithmetic in a fairly natural way.

There are no comments on this comment yet.