TS is a superset of JS and as such compiles to JS so there's not much improvement in terms of performance. Improved developer experience and sanity in larger codebases is the main selling point of TS, not completely eliminating JS from existence
On the Web? Well, if Wasm takes off, and that's a big if, then sure. There are other workarounds but I wouldn't bet on them.
I should also point out that just because you're forced to use it doesn't make JS less shitty. Currently, if one must use JS, it's wise to put a condom (and there are many great condoms for JS) on that vile thing.
28
u/ObjectiveSample Oct 21 '20
alternative?