2 ms·
> ...might it have been the same amount of effort just to introduce some strong types into Javascript itself? And how would it be different? I've been using T
by golergka 4y ago
> ...might it have been the same amount of effort just to introduce some strong types into Javascript itself?
And how would it be different?
I've been using TS since 2016, both for front and back-end, and I can count an amount of times the transpilation abstraction leaked on one hand (and most of these were when I just learning TS and worked on weirdly configured projects). Aside from these, I could just forget about the fact that it's transpiled to JS under the hood.
- danielvaughn 4y agoInteresting, maybe it's just been my personal experience. I often work at the native DOM level, where the API is extremely forgiving and dynamic. The type system does not work well there, as I found several instances where the underlying type definition didn't match what the native API actually had available. My only recourse in those moments was to either use `any` or to write my own type definition (which I am not going to do).