Module naming and declarations

Brendan Eich brendan at mozilla.com
Sun Apr 28 14:17:08 PDT 2013


Claus Reinke wrote:
> But what I really want are lexical modules as the base case.

But you don't have them now, with AMD, etc. So you'll have to wait no 
matter what (ES6, ES7). There's no "rewrite twice" if you assume AMD 
non-lexically-nested modules. Only by up'ing the ante independent of 
what you do today, do you get that "twice" -- and that is not a problem 
of ES6 _per se_.

So yes, you want lexical modules. There ought to be a strawman for them 
soon. At that point, prototyping, especially by trans-compiler writers, 
will be fair game.

/be


More information about the es-discuss mailing list