Re:JavaScript at 20
by frik on Friday May 15, 2015 @02:11PM
(#9552501)
Is the only solution to transpile ES6 to ES5 until 2025 or whenever IE11, Safari 7 and all current Smart TVs and Cars and what not have their end-of-life and simply vanish? Let's remember the problems with Internet Explorer 6 and its long actual lifetime. At the moment IE8 (WinXP), IE11 (Win8) as well as various other browsers will never receive an update on their platforms.
[ Parent
| on HN ]
Re:JavaScript at 20
by AlexeyBrin on Friday May 15, 2015 @06:22PM
(#9554056)
I'm pretty sure that at some point someone will create a library to test for ES6 compatibility when the JS code loads, I envision something like:
if ES6 {
use "mycode_js6.js";
}
else {
use "mycode_js6_to_js5.js";
}
or something similar.
Re:JavaScript at 20
by TazeTSchnitzel on Friday May 15, 2015 @08:12PM
(#9554427)
> Is the only solution to transpile ES6 to ES5 until 2025 or whenever IE11, Safari 7 and all current Smart TVs and Cars and what not have their end-of-life and simply vanish?
Well, it depends who your target audience is. If users with old browsers don't matter, you don't need to transpile.