ModuleImport

Brendan Eich brendan at mozilla.org
Thu Jun 19 20:42:21 PDT 2014


Domenic Denicola wrote:
>
> This is part of a larger issue regarding the messaging of TC39 and versioned ECMAScript, which is somewhat out of touch with [reality](https://twitter.com/annevk/status/479334108150374401).

(Spinach.)

>   I hope we can discuss this at the next TC39 meeting. But I don't mean to derail the thread.

Too late.

>> >  ```js
>> >  import * as fs from "fs"; // importing the named exports as an object
>> >  ```
>
> This looks great. Other alternatives I thought about in response included `import { * } as fs from "fs"` and `import module fs from "fs"`, but upon consideration the brevity of yours wins.
>
> I just hope we can do better documenting it, this time around, and fixing the many transpilers with their confusing semantics.

Finalize the normative spec, see what happens.

/be


More information about the es-discuss mailing list