Re: Digraphs *and* Unicode pretty-glyphs, for arrows, triangle, etc.

2012-04-04 Thread Norbert Lindenberg
A few others relevant to EcmaScript: === ⩶ != ≠ !== ≢ ... … ! ¬ * × / ÷ Infinity ∞ sqrt √ cbrt ∛ PI π Intl 🌐 // requires better fonts (http://www.fileformat.info/info/unicode/char/1f310/) Besides typing, legibility is critical: ⇒, ≥, ≤ are clearly improvements over their ASCII counterparts, but

Digraphs *and* Unicode pretty-glyphs, for arrows, triangle, etc.

2012-04-04 Thread Brendan Eich
From http://www.scala-lang.org/node/4723 (hat tip *Corey Farwell*‏@*frewsxcv* * ): |=> ⇒ // implemented <- ← // implemented -> → // implemented == ⩵ ≫ << ≪ ⋙ = ≥ <= ≤ :: ∷| Corey suggested editors could do the input conversion wh

Re: arrow function syntax simplified

2012-04-04 Thread Brendan Eich
Claus Reinke wrote: And I was surprised that both pro and cons camps continued the discussion of recursive self and dynamic this naming as if no workaround was available. I don't think anyone is really pushing hard for a dynamic-|this| form (say, ->) right now. Perhaps some want it but the th

Re: Protected Protocol

2012-04-04 Thread David Bruant
As a followup, I figured a way to repair prototype equality (and native instanceof) and updated the gist [1]. Please note the addition of EvilPerson and EvilCompSavvyPerson. Interestingly, with the exact same declaration, I was able to make a "subclass" of 2 different "classes" in 2 lines. It was

Re: Should ... be suffix rather than prefix?

2012-04-04 Thread Claus Reinke
Btw, why three dots? I always find myself writing two dots.. Presumably because three dots make an ellipsis, which has roughly the meaning we're aiming for here. True, and I admit to omitting that third dot in natural language as well. But in the context of JS, if I think of ... as the anonym

Re: Should ... be suffix rather than prefix?

2012-04-04 Thread Tab Atkins Jr.
On Wed, Apr 4, 2012 at 7:03 AM, Claus Reinke wrote: > Btw, why three dots? I always find myself writing two dots.. Presumably because three dots make an ellipsis, which has roughly the meaning we're aiming for here. ~TJ ___ es-discuss mailing list es-d

Re: Should ... be suffix rather than prefix?

2012-04-04 Thread Claus Reinke
foo(a, b, ...rest) vs foo(a, b, rest...) Which is clearer? The former suggests a special construct that may have a name, the latter suggests a variable of a special kind. But there isn't anything special about the variable (a or b could be Arrays, too), so I find the suffix form mislead

Re: arrow function syntax simplified

2012-04-04 Thread Claus Reinke
Other than the JQuery style misuse of this, what are the use cases? If you want to bind this, why wouldn't a method invocation on an objet be involved? The ES array loops accept an optional this parameter to be used for the loop callback. It is up to the caller of the forEach to provide both

Re: callable objects ?

2012-04-04 Thread David Bruant
Le 04/04/2012 02:41, Irakli Gozalishvili a écrit : On Tuesday, 2012-04-03 at 14:07 , David Bruant wrote: Le 03/04/2012 22:00, Irakli Gozalishvili a écrit : Here is more or less what I have in mind: https://gist.github.com/2295048 // class var Point = { (x, y) { this.getX = { () { return x;