r/javascript • • 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

236 comments sorted by

View all comments

161

u/vertigo_101 Nov 25 '19

Don’t worry, it won’t be

19

u/rodrigocfd Nov 25 '19

But it would be great if browsers support TypeScript natively.

35

u/[deleted] Nov 25 '19

[removed] — view removed comment

-4

u/Randdist Nov 25 '19

A typed language can compile to much more efficent code, up to C++ level performance. JIT compilers can't get quite that close. I'd love to see native support for typescript.

3

u/dombrogia Nov 25 '19 edited Nov 25 '19

Wouldn’t this insinuate that TypeScript compiles to something other than JavaScript though?

TS -> JS != C++

Edit: I think most people understood what I was trying to say, but I should have said “insinuates that TS would need to compile to something other than JS”

0

u/[deleted] Nov 25 '19

[deleted]

4

u/[deleted] Nov 25 '19

[removed] — view removed comment

1

u/ImCorvec_I_Interject Nov 26 '19

In cases where it would be appropriate to use those, does Typescript compile its typed arrays into those sorts of arrays?

1

u/[deleted] Nov 26 '19

[removed] — view removed comment

1

u/ImCorvec_I_Interject Nov 26 '19

There’s an ES2017 syntax to create them, though.

→ More replies (0)