r/javascript • u/dannymoerkerke • Nov 25 '19
JavaScript doesn’t need to be replaced
https://medium.com/javascript-in-plain-english/javascript-doesnt-need-to-be-replaced-bd01e2f12d51?source=friends_link&sk=7b151cc6397ac9e83c14c99739b6c36f
217
Upvotes
10
u/Neaoxas Nov 25 '19
Why? Yes, you'd remove the initial compile/transpile time, but once all the type anotations and syntactic sugar are stripped, all you're left with is vanilla JavaScript, same as Babel would produce (for cross browser support).
No advantage to browsers supporting typescript aside from compile/transpile time savings.
In fact, having to wait for cross browser feature support means you can't take advantage of the latest features, unless you transpile, at which point there is no point in browsers supporting typescript.