John Lenz wrote:
I don't argue that it isn't a useless "let". I do point out that in
"sloppy" mode, that other declaration are allow in practices by
browsers. Chrome allows function, const, and var in the body of an if
without block.
But those aren't useless.
They are quirky, but they do not bind in the consequent only, which is
exactly what you and John said you wanted for if(x)let y=z.
/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss