On Thu, Nov 6, 2008 at 2:33 PM, Mark S. Miller <[EMAIL PROTECTED]> wrote:
> The EcmaScript 3.1 draft standard is rapidly congealing towards an official
> standard. The Kona version at
> <http://wiki.ecmascript.org/doku.php?id=es3.1:es3.1_proposal_working_draft>
> is the important one -- details aside, the only remaining significant
> unsettled controversy is whether Decimal remains or is pulled from ES3.1.

It seems the desire to add Decimal to Javascript is a special case of
the generic desire to have custom syntax inline in a Javascript
program. In this case, the desire is to manipulate Decimal objects
using math operators. Is there any chance this issue could be
side-stepped by adding support for quasi-parsers, like in the E
language? So instead of:

0.1m + 0.1m

you'd have:

m`0.1 + 0.1`

The variable m would be initialized to some implementation in
Javascript. VMs that recognize this implementation code could then
substitute their own more efficient native implementation. Other VMs
just execute the provided implementation as normal Javascript code.

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

Reply via email to