ES6 doesn't need opt-in

Brendan Eich brendan at
Mon Jan 2 22:21:02 PST 2012

On Jan 1, 2012, at 5:12 AM, David Bruant wrote:

> Moreover, the concept of static scoping and "just look at the code to see if a variable is declared" is not that obvious for newcomers to the language or newcomers to programming.

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 {...}).


More information about the es-discuss mailing list