ES6 is already here, piece by piece it is being added. It's just like HTML5 - there is no future date when suddenly it will show up. Firefox, Chrome, etc. all have parts right now.
> 2) They use -moz prefixes in their CSS but don't include the other vendors: https://github.com/mozilla-b2g/gaia/blob/master/apps/calenda....
Sounds like a bug, filing an issue would be appreciated I am guessing.
Not sure what you mean, here's a compatibility table: http://kangax.github.com/es5-compat-table/es6/
Doesn't seem to be "already here" by any reasonable definition of here. Looks like no one but Mozilla is adding stuff that aggressively. Knowing the companies, I'd say it's very doubtful that Apple or Microsoft implement much until ES6 is finalized.
It isn't "here" as in all here, but parts of it are, and more are added all the time. My point was that just like HTML5, it's a gradual thing, at least for Firefox and Chrome - it's possible other browsers will hold off, as you say, although I hope not.
If someone steps up and wants to provide an alternate middle layer under Gaia, I really doubt Mozilla will stand in their way.
sed -i 's/const/var/g' *
right? So I'm not sure how any of the Gaia apps are going to run on non-Firefox browsers until other vendors start implementing ES6, so a year from now at least.I think that the main idea is that your app should be portable between Firefox OS and other mobile web browsers such as Opera Beta and Chrome for Android.
Gaia is not meant to be run under another browser. I think as other vendors implement the needed APIs, they will be unprefixed.
But it would be a bit silly for Mozilla to pursue that at the cost of an expedient release of FF OS, when there aren't even any other implementations to test with. :)
I'm a fan of what Mozilla is doing, but I encourage you to go look at Gaia code and then come back and repeat this. None of it will run in other browsers for two reasons:
1) They use JavaScript 1.7 features that no other browser is going to implement until ES6.
2) They use -moz prefixes in their CSS but don't include the other vendors: https://github.com/mozilla-b2g/gaia/blob/master/apps/calenda...