People conflated the dynamic tools with the programming model, but default export is a genuinely good idea we wanted to adopt.
-
-
Replying to @wycats @littlecalculist and
Love default exports - crazy that the TypeScript folks dislike it.
3 replies 0 retweets 1 like -
Replying to @AdamRackis @littlecalculist and
They do? Maybe because it's harder to quick fix?
1 reply 0 retweets 0 likes -
Replying to @wycats @littlecalculist and
They say "you can't rename" but they mean "I want all default imports always use the same name" -
@mweststrate hope I'm not misrepresenting1 reply 0 retweets 0 likes -
-
Replying to @wycats @littlecalculist and
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
2 replies 0 retweets 0 likes -
Replying to @AdamRackis @wycats and
Foo is just the default object, not the class
1 reply 0 retweets 0 likes -
Replying to @richardiii @wycats and
Yeah I get it - I disagree with the TS community on this :)
2 replies 0 retweets 0 likes -
Replying to @AdamRackis @wycats and
Isn't TS always * as Foo, even if there is a default? Been a while since I looked and couch tweeting from phone
2 replies 0 retweets 0 likes -
Replying to @richardiii @wycats and
No sir. They even have a config flag to let default imports work without a real default export, i.e. React
1 reply 0 retweets 0 likes
Yeesh. I'm so used to Ember being pure ES6 for years and years that this stuff just creeps me out.
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.