Re:Amazon open-sources Ion – a binary and text interchangabl...
by Dylan16807 on Friday April 22, 2016 @02:39AM
(#11547436)
Integers will do no better at pretending to be a decimal type without a library.
[ Parent
| on HN ]
Re:Amazon open-sources Ion – a binary and text interchangabl...
by snuxoll on Friday April 22, 2016 @11:39AM
(#11549981)
Sure, but most other languages have built-in support for decimal types. Java has BigDecimal, as does Ruby, Python has the decimal module, C# has System.Decimal, the list goes on.
Javascript doesn't even have proper integers to guarantee the functioning of this correctly, it's a really sad state.
Re:Amazon open-sources Ion – a binary and text interchangabl...
by Dylan16807 on Friday April 22, 2016 @12:04PM
(#11550166)
>Javascript doesn't even have proper integers to guarantee the functioning of this correctly
I don't understand what you mean at all. Javascript should be able support a decimal library just as easily as a language with integers.