detecting JS language mode for tools

Allen Wirfs-Brock allen at
Sat Jan 25 08:58:29 PST 2014

On Jan 24, 2014, at 6:33 PM, Brendan Eich wrote:

> John Barton wrote:
>> On Fri, Jan 24, 2014 at 12:17 PM, Allen Wirfs-Brock <allen at <mailto:allen at>> wrote:
>>    I should have also included:
>>    2A) Hopefully, overtime, the old script syntactic goal will fade
>>    from use, and the module goal will become the norm for new code.
>> Now here is a reason, finally, for all the extra complexity the two goals cause.
>> If we want to kill script, let's not stab it with a dull pencil. Let's make Loader and System be modules, not globals. Then you cannot load modules with <script>, only with <module>.
> We are not killing <script>> Dream on!

Right, that's why I said "script syntactic goal".  In 2A "script" refers to the ES6 Script grammar production, not the HTML <script> tag.


More information about the es-discuss mailing list