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 {...}). /be _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss