2 questions about ES6 module loaders

Brendan Eich brendan at mozilla.org
Sun May 31 18:01:50 UTC 2015

Glen wrote:
> PS. "from X import Y" syntax would have been useful in cases where 
> IDEs provide auto-completion. I know it's too late for changes now.

It has other advantages: Python-like for those who care; Y can be a long 
braced list or pattern, which goes better at the end.

But too late, and import was reserved in ES1 and ur-JS, but not in IE 
JScript (which did not follow ES1's list of future reserved words, 
reserving only class enum extends super, IIRC). Still, some warding-off 
effect from the '90s when people couldn't use `import` as an identifier.


More information about the es-discuss mailing list