restrictions on let declarations
brendan at mozilla.com
Thu Jan 30 18:11:42 PST 2014
Thaddee Tyl wrote:
> By the way, even in the current specification of let, we can still
> construct a useless let:
> for (let x = 42;false;) console.log(x);
> (which is the same as the example you gave, using "if").
Yes, this falls out of the JS (and Dart, convergent evolution,
coincidental as far as I can tell) design, but so what? OMG LETS MAKE
USELESS LETS EVERYWHERE LOLJSSUXZ0RZ! Um, no.
More information about the es-discuss