ESnext – Tomorrow’s JavaScript syntax today
esnext.github.io
esnext.github.io
http://kangax.github.io/compat-table/es6/
Though admittedly facts like whether they support source maps (such as Traceur) or preserve comments (not Traceur) are omitted. EJS is impressive though.
https://github.com/toshok/echo-js
(It's definately this repo: https://github.com/kangax/compat-table/pull/115 )
[edit] It's not clear to me that this project compiles to es3, but that was my assumption when reading "JavaScript that will work today".
P.S. IE9 doesn't support ES5 strict mode so "use strict" might introduce some subtle bugs for that case.
ESNext is more modular. You can use just some features which may or may not require a runtime. It just depends. Overall Traceur is "better". But ESNext is nice if you just want feature X and don't want the overhead of having to support everything.
Now my only issue is IE8. If I could have something like this but that allowed ES5 to run on ES4 engines, I'd be in heaven (and able to use Vue.js for work, finally, as well as not being stuck on Angular 1.2 or whatever it is...).
One of these days I'm going to get stuck into Sweet.js and make it happen, I swear. ES5-shim just isn't comprehensive enough, unfortunately.
Because IE8 includes it's own horrid implementation that only works on DOM elements, the various shims for it fail (and fail in some really interesting ways). Using Sweet.js macros and compiling it out to a differently named method call would allow us to get around that limitation.
Why calling new Person(..,..) returns toString()?
The example calls:
console.log( 'Full name is:', new Person('Michael', 'Bluth2') );
new Person should create an instance of Person, but why it calls toString()?.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Plus, it comes from Microsoft and there are literally millions of devs out there who only want to use what Microsoft is pushing because they know that if Microsoft gets it right, they will reap the benefits of robust hiqh-quality tools and components as history has shown them. So far it looks to a lot of us like they're getting it right.
There's obviously no true measuring stick here. If you don't like Microsoft's style, which I'm betting most folks here don't, then it's probably not for you.
It's sad that the trifecta of lame known as HTML/CSS/JS won out due to the fact that it's the only cross platform kit that native mobile environments will fully support, since it's so non-threatening.
http://blogs.msdn.com/b/typescript/archive/2014/10/06/announ...
Right at the end "This work and the work to align with ECMAScript 6 is ongoing.".