Hacker News new | past | comments | ask | show | jobs | submit login

I still feel better with thin/no tooling for transpiling, flow types in comments. There’s something nice about no or ultra flat dependencies and instant npm i that keeps me there.



Typescript also supports type checking pure JS files, as well as type annotations via JSDoc comments, if you don't want to transpile.



I like how TS also enables future JS features by transpilation. async / await was great to have quite early on.


If you use VSCode just put `// @ts-check` at the top of your files. I find a bunch of bugs with just that.


100%! Whatever happened to progressive enhancement?


It's a design trade-off. TypeScript is close enough to JavaScript but adding the compiler step actually enables worthwhile changes to improve code safety. And Typescript can import JavaScript modules anyway, so really you just lose the ability to write both in the same file.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: