ES6 doesn't need opt-in

Andreas Rossberg rossberg at
Tue Jan 3 01:29:00 PST 2012

On 3 January 2012 07:21, Brendan Eich <brendan at> wrote:
> It's not obvious if the static scope is built up from <sript> element to successive <script> element, either. Must I read all the scripts? The conditionally generated ones too?
> The top level is hard. The only way to be sure is to use pure lexical scope (in Dave's proposal, use module {...}).

Ah, but wrapping into modules is incompatible with having multiple
script parts. For multi-part scripts we need a way to switch the
_proper_ top-level into extended mode. Or should I not be able to
write (the relevant bits of) a multi-part script in extended mode at


More information about the es-discuss mailing list