restrictions on let declarations

John Barton johnjbarton at google.com
Thu Jan 30 08:33:21 PST 2014


> On Thu, Jan 30, 2014 at 10:59 AM, John Barton
>
> That craziness is the whole point of block scoping let.  ...
>
> Give that this is the behaviour of every other block scoped language i
> don’t see why this is confusing.
>

It's not `let` vs `var` that concerns us, it's that the statement following
an if condition is not equivalent to a block.

jjb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140130/45af4ffe/attachment.html>


More information about the es-discuss mailing list