News for hackers. Stuff that matters.
Re:Dinero.js – JavaScript library for working with monetary ... by recursive on Monday April 16, 2018 @06:07PM (#16853282)
You may have designed it using only integers, but it's very easy to use it with non-integers, which will result in hard-to-diagnose errors. It should probably throw if a non-integer is encountered. Failing that, a huge blinking red banner at the top of the docs should explain the problem.
Re:Dinero.js – JavaScript library for working with monetary ... by boubiyeah on Tuesday April 17, 2018 @06:05AM (#16856918)
Annnnd that's why I like types :D