migrating `let' and `const'

Andy Wingo wingo at igalia.com
Tue Nov 15 07:59:14 PST 2011


On Tue, 2011-11-15 at 07:41 -0800, Brendan Eich wrote:

> To quote Waldemar from
> 
> https://mail.mozilla.org/pipermail/es-discuss/2010-October/011972.html
> 
> "It's a judgment call, and I'd take these on a case-by-case basis.
> For const and let, I see little harm in browsers allowing them now in
> strict mode with the purely non-hoisting (C++-like) scoping rules,
> particularly if they complained when you accidentally declared a
> variable twice directly in the same block."

This makes sense.  Thanks for the note.

Related wiki page:
http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls

Andy



More information about the es-discuss mailing list