It bugs me that people criticize TC39 for not basing Modules on Node/CJS. Why should they settle for a local maximum just bc it was first?
-
-
People conflated the dynamic tools with the programming model, but default export is a genuinely good idea we wanted to adopt.
-
Love default exports - crazy that the TypeScript folks dislike it.
-
They do? Maybe because it's harder to quick fix?
-
They say "you can't rename" but they mean "I want all default imports always use the same name" -
@mweststrate hope I'm not misrepresenting -
I don't get it.
-
import Foo from "./foo" What if, inside foo.js you rename class Foo to class Bar Old imports will still work w/ old name: they no like
-
You mean you rename export default class Foo ?
-
Exactly - they dislike that export default class Foo can be imported with a different name, ie import Fooooo from "./foo"
- 19 more replies
New conversation -
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.