Yes, Sam Ruby prototyped a new Decimal built-in for SpiderMonkey, with operators. This was in mid-2008 when ES4 was going down. See

https://bugzilla.mozilla.org/show_bug.cgi?id=445178

TC39 rejected hardcoding IEEE DFP into JS at the 2008 fall "Kona" meeting:

https://mail.mozilla.org/pipermail/es-discuss/2008-November/008179.html

Waldemar: "Decimal is out because the spec isn't ready and there are some problems that are not small spec errors -- generic behavior of functions, etc."

Some discussion lingered on:

https://mail.mozilla.org/pipermail/es-discuss/2009-January/008630.html

The plan since then is to add value types or proxies to the language, so that Decimal, Complex, etc. with operators and literals for good usability may be added by library authors. See

http://wiki.ecmascript.org/doku.php?id=strawman:value_proxies

and

http://users.soe.ucsc.edu/~cormac/papers/oopsla11.pdf

See also (from 2010) a hardcoded bignums strawman:

http://wiki.ecmascript.org/doku.php?id=strawman:bignums

/be

Andrew Paprocki wrote:
I see there was a bunch of work done to possibly introduce 128-bit
IEEE754r DFP back in the ES4 days:

http://wiki.ecmascript.org/doku.php?id=proposals:decimal&s=decimal

Has any work been done since ES4 to introduce a DFP type?

-Andrew
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to