On Thursday, June 19, 2014 5:17 AM, David Herman <dher...@mozilla.com> wrote:

```js
import * as fs from "fs"; // importing the named exports as an object
import Dict from "dict";  // importing a default export, same as ever
```


My first reaction is to think that a lot of developers will ask: why can't I do 
`import * from 'fs';`?

But it's easier to teach than the alternative. And I agree with the premises: 
ModuleImport should be there and it should be less convenient than using the 
default export.

Thanks David!

Juan
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to