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: 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