Re: Es-discuss - several decimal discussions

2008-09-04 Thread Brendan Eich
On Sep 3, 2008, at 11:15 PM, David-Sarah Hopwood wrote: In the absence of decimal, Object.eq is trivial to spec: Object.eq(NaN, NaN) = true Object.eq( 0, -0) = false Object.eq( -0, 0) = false Object.eq( x, y) = (x === y), otherwise. or to implement: Object.eq =

Re: Call for opinions: attribute defaults and renaming flexible

2008-09-04 Thread Mark S. Miller
On Wed, Sep 3, 2008 at 10:58 PM, Brendan Eich [EMAIL PROTECTED] wrote: If deletable and configurable were distinct, we could make new properties of the global object start as configurable but not deletable. Saving perf but to what end? Does the Caja, etc. programming model require

Re: Es-discuss - several decimal discussions

2008-09-04 Thread Brendan Eich
On Sep 4, 2008, at 12:29 AM, David-Sarah Hopwood wrote: 1. You can't do that in ES3.1 if Decimal is not in ES3.1. You'd have to add typeof Decimal !== 'undefined' to the 'if' condition. And then you'd be trying to anticipate a future spec, rather than relying on an existing one.

Is the following a bug that needs to be fixed for ES 3.1?

2008-09-04 Thread Michael Daumling
Hi all, The following code produces a first is not a function error: Array.prototype.first = function() { return this.length == 0 ? null : this[0]; } // no semicolon here (function() { if ([1,2].first() == 1) alert (OK); }()) If the two statements are separated via a semicolon, there is

Re: Es-discuss - several decimal discussions

2008-09-04 Thread P T Withington
On 2008-09-04, at 03:37EDT, Brendan Eich wrote: Not really, but eq has been used to refer to this operation for decades in both the Lisp and capability communities. I can live with Object.identical, but I'll always think of it as 'eq'. Ok. If `identical` is too long, try `id`? Or, since

Inclusion of Unicode character set constants in RegExp (\p{L} ... )

2008-09-04 Thread Hans Schmucker
Apologies if this isn't the right place or the right format to suggest a modification to ES. I try my best to be as specific as possible to minimize problems when/if this was moved to the spec. So far, the RegularExpression functions in ES are based on the assumption that the only language worth

Re: Inclusion of Unicode character set constants in RegExp (\p{L} ... )

2008-09-04 Thread Hans Schmucker
I've also added a bug in bugzilla.mozilla.org which can be used to discuss this: https://bugzilla.mozilla.org/show_bug.cgi?id=453554 Hans Schmucker Mannheim Germany ([EMAIL PROTECTED]) ___ Es-discuss mailing list Es-discuss@mozilla.org

Re: return when desugaring to closures

2008-09-04 Thread Dave Herman
Hmm. I thought the motivation for using SML is that it had a definite formal semantics (for which the last revision was published a decade ago), Not really; I suppose it's nice to know that the underlying meta-language is formalized, but this would really only provide practical utility if we

Re: Is the following a bug that needs to be fixed for ES 3.1?

2008-09-04 Thread liorean
2008/9/4 Michael Daumling [EMAIL PROTECTED]: The following code produces a first is not a function error: Array.prototype.first = function() { return this.length == 0 ? null : this[0]; } // no semicolon here (function() { if ([1,2].first() == 1) alert (OK); }()) That's a quite