restrictions on let declarations

John Barton johnjbarton at
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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list