import script --> .esm

Axel Rauschmayer axel at rauschma.de
Wed Sep 10 09:39:27 PDT 2014


> Modules and scripts can not always be identified by inspection.  Consider:
> 
> foo.js -------------------------------
> const answer = 42;
> ---------------------------------------
> 
> The semantics of this are quite different depending upon whether foo.js is evaluated as a script or loaded as a module.

Given that module files and script files have different semantics, I would definitely want different file endings for them – for both humans and machines. 1JS doesn’t apply here.

Axel

-- 
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140910/a70dcfe9/attachment.html>


More information about the es-discuss mailing list