simpler, sweeter syntax for modules

Brendan Eich brendan at mozilla.org
Fri Mar 23 10:20:58 PDT 2012


Claus Reinke wrote:
> When statically checkable constraints meet dynamic load/eval,
> it isn't necessary to have a strict static/dynamic split. It would be
> possible to adopt a multi-staged design, where there are multipe
> dynamic phases, each with its own preceding static phase: no
> code runs without static checks, no static properties are affected
> by dynamic code in the same stage. 

Yes, this was all detailed by Dave as part of 1JS.

Also it's inherent in the embedding of JS in HTML. Each of several 
successive <script> elements is a separate staged evaluation (i.e., 
compilation) unit.

/be


More information about the es-discuss mailing list