On , sylvain.bertrand_AT_gmail.com wrote:
> json almost deserves a promotion to suckless format.
Except for not putting any limits on sizes of integers. I think it would
be better to have size the implementation must support to be json
complient. And also having separate int and float types. Because let's compare
what happens in ruby:
JSON.parse(?9 * 100))
=> 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
and in firefox (JavaScript):
var x = ''; for (var i = 0; i < 100; ++i) { x += '9'; }; JSON.parse(x);
=> 1e+100
So, yeeeey interoperability I guess?
W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
Received on Sat Jun 15 2019 - 20:37:34 CEST