Global lexical tier
Brendan Eich
brendan at mozilla.org
Thu Sep 3 18:49:00 UTC 2015
As you probably read (agreed, notes are strung out and not
well-indexed), we considered that too. It fell to the objection that
users certainly want const and class declarations from one script to be
usable in subsequent scripts. For let, we didn't want to break symmetry
with const and class at top level (if you want per-script let, use a
block around the whole script body).
/be
saam barati wrote:
> Sorry for the confusion, I was talking about my stated preference that
> all lexical variables should be local
> to the program they're defined in.
More information about the es-discuss
mailing list