4 ms·
I like CoffeeScript but I see it as a temporary language providing cool syntax features on top of Javascript. no offense but IMHO, we should focus on releasing
by gren 14y ago
I like CoffeeScript but I see it as a temporary language providing cool syntax features on top of Javascript.
no offense but IMHO, we should focus on releasing the next Javascript and make it possible instead of writing better CoffeeScript compilers.
- roryokane 14y agoThe problem is that making a better JavaScript you can actually use is a lot harder than making a better CoffeeScript. If you make a better CoffeeScript, you just have to write one compiler for it, written in JavaScript. If you make a better JavaScript, you have to lobby all of the major browser vendors to accept it. And then you have to wait for the browser teams to write the compiler. And even if you write the compilers yourself really fast for all of the open-source projects, you still have to wait for the Internet Explorer team to upgrade their compiler - you can't speed that up, because IE is closed-source. And finally, you can't safely use that new JavaScript on most sites until a few years later, when most people have upgraded their browsers. Whereas compiled CoffeeScript runs on even old browsers.
- hartror 14y agoOf course compiling to JS as CoffeeScript does is itself the answer to the IE issue. If and when there is a new JS one could conceivably compile the new JS to old JS for IE users. It adds an extra burden on dev teams but IE special cases aren't anything new to web devs and it allows the standard to move more quickly.
- strager 14y agoWhat prevents "new" JavaScript from being compiled like CS is being compiled now?
- TrevorBurnham 14y agoThis is an excellent idea, and is the goal of a project that Google announced at JSConf 2011 with much fanfare (some of it from Brendan Eich himself), Traceur: http://code.google.com/p/traceur-compiler/ http://code.google.com/p/traceur-compiler/ However, Traceur has gained little traction. With the announcement of Dart, it's clear that Google's heart isn't really into the project. See also: http://stackoverflow.com/questions/6506519/ecmascriptharmony-es6-to-javascript-compiler http://stackoverflow.com/questions/6506519/ecmascriptharmony...
- Raynos 14y agoWhy don't we spend effort on building an ES:Harmony -> ES3 compiler rather then a CoffeeScript -> ES3 compiler. It's more worthwhile future facing project.
- herge 14y agoThe next version of javascript will only work on a minority of browsers, even years after it is adopted (http://arstechnica.com/business/news/2012/04/internet-explorer-market-share-surges-as-version-9-wins-hearts-and-minds.ars http://arstechnica.com/business/news/2012/04/internet-explor...) while coffeescript works on all browsers now.