ES6 modules & destructuring don't match. If `import foo from 'foo'` and `foo.bar` exists, no guarantee I `import { bar } from 'foo'` does.
-
-
@wycats no, I know very well they are not the same. BUT just that it *looks* similar in practice and I haven't seen why intentionally diffThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@wycats export default is my gripe, basically. -
@wycats I wish it didn't exist and import foo from "foo" would import all the named exports. If it did, you could destructure if you want -
@_jayphelps example: `bind` is a property on functions but also a named export of underscore. Worlds collide. -
@wycats great example. Bummer world, but now I see the corner we're pinned into. Thank you for clarifying!
End of conversation
New conversation -
-
-
@wycats@_jayphelps I found this helpful —> http://www.2ality.com/2014/09/es6-modules-final.html …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.