Re: Overly complicated Array.from?

2013-12-26 Thread David Bruant
Le 26/12/2013 05:00, Rick Waldron a écrit : On Wed, Dec 25, 2013 at 7:33 PM, David Bruant For the rationale, the wiki states [1]: There are many array-like objects in JS (arguments objects, DOM NodeLists, arrays from separate windows, typed arrays) and no simple way to convert

Re: es-discuss Digest, Vol 82, Issue 98

2013-12-26 Thread raul mihaila
-- Forwarded message -- From: Brendan Eich bren...@mozilla.com To: raul mihaila raul.miha...@gmail.com Cc: es-discuss es-discuss@mozilla.org Date: Wed, 25 Dec 2013 13:44:21 -0500 Subject: Re: Fwd: local variables with inherited values That's unusual -- why would it

Re: Overly complicated Array.from?

2013-12-26 Thread David Bruant
Le 26/12/2013 10:58, David Bruant a écrit : Le 26/12/2013 05:00, Rick Waldron a écrit : On Wed, Dec 25, 2013 at 7:33 PM, David Bruant For the rationale, the wiki states [1]: There are many array-like objects in JS (arguments objects, DOM NodeLists, arrays from separate windows,

Re: es-discuss Digest, Vol 82, Issue 98

2013-12-26 Thread Brendan Eich
raul mihaila wrote: I am beginning to like the syntax from ES4. I suppose it would work with multiple variables as well. let (x = x, y = y, z = x + y /* maybe would work? */) { } Yes, ES4 let expr/block works with multiple declarators in a comma-separated list in the head. Perhaps