simple modules
Brendan Eich
brendan at mozilla.com
Wed Feb 3 12:36:17 PST 2010
On Feb 3, 2010, at 12:20 PM, David Herman wrote:
> Although it should perhaps not be possible to export a `let'
> binding; those really are supposed to be purely local.
The issue arises because we do want 'const' bindings to be exportable,
and they are supposed to be block-scoped exactly like 'let', but of
course written only by initialization (a mandatory syntactic
initializer) and not readable in the "temporal dead zone" before the
initializer has been evaluated and the const's value set.
/be
More information about the es-discuss
mailing list