Hi ESers,

Please allow me wasting a little bit of your precious time on a topic which 
doesn't appear to be completely agreed upon.

As you know JSON Numbers in ECMAScript are currently limited to IEEE-754 Double 
Precision.

To support interoperability with JSON.parse(), providers of JSON tools for 
other platforms have taken somewhat different paths when dealing with 
BigInteger, Long, Money, BigNumber, etc.

One camp headed by the JDK (Java) folks advocates the use of *adaptive 
notation* where the actual value governs if the value should be furnished as a 
JSON Number or embedded in a JSON String.

Other camps claim that *consistent notation* embedding values in JSON Strings 
would be more useful, albeit at the cost of always requiring two additional 
bytes.

WDYT?

Anders
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to