es-discuss Digest, Vol 82, Issue 98

Brendan Eich brendan at
Thu Dec 26 10:02:13 PST 2013

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 it will be re-championed for 
ES7, but we need to get basic let/const/class and function-in-block 
fully baked first.


More information about the es-discuss mailing list