Re: Nov 17 meeting notes

2011-11-18 Thread Waldemar Horwat
On 11/17/2011 10:03 PM, Dominic Cooney wrote: On Fri, Nov 18, 2011 at 9:40 AM, Waldemar Horwat mailto:walde...@google.com>> wrote: Array destructuring and length: let [a, b, c, d, ... r] = {2: 3} <| [1, 2] Obvious: a is 1; b is 2. What are c, d, and r? c = 2. Nit: This sh

Re: Nov 17 meeting notes

2011-11-18 Thread Rick Waldron
> > snip > Quick reply to suggest that rest is the wrong proposal. You want > > http://wiki.ecmascript.org/doku.php?id=harmony:spread > > http://wiki.ecmascript.org/doku.php?id=harmony:spread#11.1.4_array_initialiser > Thanks! That's a much better resource - and the [...arrayish] example _does_ ma

Re: Nov 17 meeting notes

2011-11-18 Thread Brendan Eich
On Nov 18, 2011, at 8:54 AM, Rick Waldron wrote: > On Thu, Nov 17, 2011 at 11:06 PM, David Herman wrote: > On Nov 17, 2011, at 5:20 PM, Rick Waldron wrote: > >> On Thu, Nov 17, 2011 at 7:40 PM, Waldemar Horwat wrote: >> Array.from(a) is superfluous because it's expressed even simpler as >> [...

Re: Nov 17 meeting notes

2011-11-18 Thread Brendan Eich
On Nov 18, 2011, at 7:15 AM, David Bruant wrote: > Subarray having a 'from' method sounds like a good idea, but it > inheriting it from Array sounds counter-intuitive, because Array is > indeed more of a placeholder than anything else. Very much like > Object.getOwnPropertyDescriptor. It depends.

Re: Nov 17 meeting notes

2011-11-18 Thread Rick Waldron
On Thu, Nov 17, 2011 at 11:06 PM, David Herman wrote: > On Nov 17, 2011, at 5:20 PM, Rick Waldron wrote: > > On Thu, Nov 17, 2011 at 7:40 PM, Waldemar Horwat wrote: > >> Array.from(a) is superfluous because it's expressed even simpler as >> [... a]. DaveH withdrew it. >> > > Perhaps Array.from()

Re: Nov 17 meeting notes

2011-11-18 Thread David Herman
On Nov 17, 2011, at 5:20 PM, Rick Waldron wrote: > This is a real problem, in real JavaScript, in the real world. Considering > the positive response from actual developers in the JS community, I'd like to > ask that it be reconsidered. You can write this function in JS today: function arr

Re: Nov 17 meeting notes

2011-11-18 Thread David Bruant
Le 18/11/2011 01:40, Waldemar Horwat a écrit : > Array.from discussion: What happens if you subclass Array? > Subarray = Array <| function() {...} > Subarray.from(arraylike) Subarray having a 'from' method sounds like a good idea, but it inheriting it from Array sounds counter-intuitive, because A

Re: Nov 17 meeting notes

2011-11-17 Thread Dominic Cooney
On Fri, Nov 18, 2011 at 9:40 AM, Waldemar Horwat wrote: > Array destructuring and length: > let [a, b, c, d, ... r] = {2: 3} <| [1, 2] > Obvious: a is 1; b is 2. > What are c, d, and r? > c = 2. > Nit: This should be c = 3, because {2: 3} means ({2: x} <| [1, 2])[2] is x, right? > d = undefined

Re: Nov 17 meeting notes

2011-11-17 Thread David Herman
On Nov 17, 2011, at 5:20 PM, Rick Waldron wrote: > On Thu, Nov 17, 2011 at 7:40 PM, Waldemar Horwat wrote: > Array.from(a) is superfluous because it's expressed even simpler as > [... a]. DaveH withdrew it. > > Perhaps Array.from() was either misunderstood or miscommunicated. I had > prepared

Re: Nov 17 meeting notes

2011-11-17 Thread Brendan Eich
On Nov 17, 2011, at 4:40 PM, Waldemar Horwat wrote: > Tom: Use a null target to indicate a permanently "virtual" object. > Brendan: Proxy.DonJuan He refuses to commit. /be ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/list

Re: Nov 17 meeting notes

2011-11-17 Thread Rick Waldron
On Thu, Nov 17, 2011 at 7:40 PM, Waldemar Horwat wrote: > Array destructuring and length: > let [a, b, c, d, ... r] = {2: 3} <| [1, 2] > Obvious: a is 1; b is 2. > What are c, d, and r? > c = 2. > d = undefined. > r = empty. > > Fixed property destructuring doesn't rely on length. > Vararg r destr

Nov 17 meeting notes

2011-11-17 Thread Waldemar Horwat
Array destructuring and length: let [a, b, c, d, ... r] = {2: 3} <| [1, 2] Obvious: a is 1; b is 2. What are c, d, and r? c = 2. d = undefined. r = empty. Fixed property destructuring doesn't rely on length. Vararg r destructuring uses length. The semantics of length will match that of slice. All

Nov 17 meeting notes

2010-11-17 Thread Waldemar Horwat
Here are my meeting notes for today. Waldemar WebIDL: Can abstract interfaces have static members? Don't see why not -- they'd just be spec sugar for adding the same static member to concrete classes that derive from those abstract interfaces. As usual, it would be a spec error to have a c