restrictions on let declarations

Rick Waldron waldron.rick at gmail.com
Thu Jan 30 12:45:44 PST 2014


On Thu, Jan 30, 2014 at 2:59 PM, John Lenz <concavelenz at gmail.com> wrote:

> Yes, that was my point, that is has to be allowed currently and this is a
> change.
>

But let and const aren't the same as var and function, they have different
syntax with different static and runtime semantics. New forms are allowed
to have new rules, especially ones that make writing code with the new
forms more intuitive and less error prone.

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


More information about the es-discuss mailing list