r/javascript • • Aug 27 '18

`export default` considered harmful

https://basarat.gitbooks.io/typescript/docs/tips/defaultIsBad.html
32 Upvotes

43 comments sorted by

View all comments

1

u/tchaffee Aug 27 '18

Is Typescript necessary for all your examples? If not, I think it just muddies the waters and makes your article easier to dismiss for those who don't use Typescript. Other than that, I usually need more time to try out something opinionated like this before deciding, but this looks promising.

3

u/cspotcode Aug 27 '18

The link points to a book about TS, so logically all the examples are written in TS.

1

u/tchaffee Aug 28 '18

Thanks for pointing that out. Makes more sense now. If the author wants to make the case for a wider audience, it really deserves its own article outside of the TS context.