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.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss