3 ms·
Coffeescript "compiles" to JS--so it's not an alternative to using Javascript; just an alternative syntax for writing javascript.
by bcrescimanno 16y ago
Coffeescript "compiles" to JS--so it's not an alternative to using Javascript; just an alternative syntax for writing javascript.
- DanielRibeiro 16y agoCoffeescript is a different language though. It has different grammar, different keywords and so on. It shares the same object model, and it is usually used on compile form. There are other alternatives as well[1], such as: - LLVM languages: http://syntensity.blogspot.com/2011/04/emscripten-10.html http://syntensity.blogspot.com/2011/04/emscripten-10.html - HotRuby: http://hotruby.yukoba.jp/ http://hotruby.yukoba.jp/ - Smalltalk: http://clamato.net/ http://clamato.net/ - Haxe: http://haxe.org/ http://haxe.org/ - Mascara: http://www.mascaraengine.com/ http://www.mascaraengine.com/ And so on. Coffeescript is just closer to javascript than most alternatives. But it is a different language, and a nicer one in my humble opinion. [1] https://github.com/jashkenas/coffee-script/wiki/List-of-languages-that-compile-to-JS https://github.com/jashkenas/coffee-script/wiki/List-of-lang...
- bcrescimanno 16y agoI disagree that any language that "compiles" into another language can be considered an "alternative." I'm not bashing CoffeeScript; I haven't played with it much and don't know enough about it say anything one way or the other; but at the end of the day, the result is still Javascript.
- dionidium 16y agoWell, yeah, but you might as well say that JavaScript is just an alternative syntax for writing assembly language or machine code.