detecting JS language mode for tools

Brendan Eich brendan at mozilla.com
Sat Jan 25 15:31:52 PST 2014


John Barton wrote:
> The Script goal disallows 'import' and 'export' specifically to ensure 
> that the Script goal is inconvenient for developers and thus they are 
> encouraged to shift to the Module goal.

No, that's not the rationale. The reason is to avoid enabling more 
synchronous <script src=>-style jank. We have enough of that already 
with the existing attractive nuisance (script src= w/o async), per Steve 
Souders.

/be


More information about the es-discuss mailing list