Decimal comparisons

Brendan Eich brendan at mozilla.org
Fri Sep 19 09:39:28 PDT 2008


On Sep 19, 2008, at 10:27 AM, Sam Ruby wrote:

> On Fri, Sep 19, 2008 at 9:21 AM, Brendan Eich <brendan at mozilla.org>  
> wrote:
>> On Sep 19, 2008, at 8:45 AM, Sam Ruby wrote:
>>
>>> Does the committee feel that it can ever add new values to typeof
>>> under any circumstances?
>>
>> Certainly not if there is "opt-in version selection".
>
> The "opt-in" version selection techniques I recall being discussed
> were scoped to compilation units.  Are you suggesting that the
> "typeof" a value could produce different results based on which
> compilation unit evaluated the expression?

No, I'm simply pointing out that there's no perfectly compatible way  
to add decimal to ES.


> **shudder**

We've been around this block on the list. I'm with you: typeof 1.1m  
== "decimal" and we'll take chances with code that thinks it knows  
every result string that typeof might produce.

/be



More information about the Es-discuss mailing list