Mark Volkmann (2014-03-14T14:07:59.000Z)
domenic at domenicdenicola.com (2014-03-21T15:01:55.268Z)
On Fri, Mar 14, 2014 at 8:54 AM, Kevin Smith <zenparsing at gmail.com> wrote: > You can't really import all exported bindings. You can import the module > instance object itself: > > module M from "wherever"; > > which will give you access to all of the exports. That's what I meant by importing all the exports. I'd prefer it if the syntax for that was ```js import M from "wherever"; ``` That way I could think of import is doing something like destructuring where the other syntax below is just getting some of the exports. ```js import {foo, bar} from "wherever"'; ``` > The specialized default export syntax is just plain confusing and should > be jettisoned, in my opinion. It would be less confusing for users to > simply write: > > export { foo as default }; > > I fail to see why sugar over this form is necessary. I completely agree. Plus if this is taken away then the "import" keyword can be used to get the whole module as in my example above. At that point maybe there is no need for the "module" keyword.