▲ | mmkos 3 days ago | |
I honestly can't see what's wrong with using TypeScript anywhere in place of JavaScript. Unless you're making a simple script or a throwaway prototype, then you're pretty much always better off with it. It's invaluable during development and it's compiled away at build time. | ||
▲ | joquarky 2 days ago | parent [-] | |
I respect those who use and enjoy TS, but I have less respect for the argument that it should be used in place of JS everywhere. You’re replacing runtime trust with compile-time trust, but at the cost of flexibility and speed. That’s not always worth it. TypeScript solves problems I stopped having 20 years ago. |