Re:Modern Javascript: Everything you missed over the last 10...
by a1371 on Saturday May 15, 2021 @02:32PM
(#27167688)
You're comparing Elixir & Ruby with Babel, not vanilla JavaScript. You are putting your code on non-standard JavaScript, that's on you.
[ Parent
| on HN ]
Re:Modern Javascript: Everything you missed over the last 10...
by dragonwriter on Saturday May 15, 2021 @02:40PM
(#27167756)
> You're comparing Elixir & Ruby with Babel, not vanilla JavaScript. You are putting your code on non-standard JavaScript, that's on you.
Babel is the only way to use modern standard JS without excluding older browsers.
Re:Modern Javascript: Everything you missed over the last 10...
by austincheney on Saturday May 15, 2021 @06:31PM
(#27169601)
I completely disagree. The TypeScript compiler allows you to specify a compile target against a version of JavaScript. That means you can write modern TypeScript and have it compile to ES3.
Re:Modern Javascript: Everything you missed over the last 10...
by dragonwriter on Sunday May 16, 2021 @11:26AM
(#27174297)
Well, yeah, but then you’re using modern TypeScript, not modern JavaScript.