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 =
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
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.
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
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
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
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
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
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
9 matches
Mail list logo