Javascript to CoffeeScript converter
github.com
github.com
This leads me to think how much of your code style can be influenced by the syntax of your language.
coffee's syntax encourages your to create many small functions which gives coffee code its uinque look. In JS, creating functions is just cumbersome enough to type so you don't do it as often, leading to completely different code.
(my https://github.com/pilif/tempalias/blob/master/lib/tempalias... is a very good example of quite-acceptably looking JS that gets butchered looks-wise when translated into coffee)
most popular libraries easily got converted to coffee
but faced some problems with hand coded javascript files from a project. "Label not supported" error. going to test those with jslint
You can just keep your existing JS code, or, if you want to port that, call directly into JS libraries from your new coffescript code.
The coffeescript version is most certainly worse, but negligibly so. It adds about 1-2 ms to half of the functions.
That being said, thats not surprising. Just like when you make a copy of a copy you only loose. You'll never gain by compiling back and forth.
This with the existence of CoffeeScript.eval and now, I believe I will use CoffeeScript.
[^1]: http://yannesposito.com/Scratch/en/blog/2011-01-03-Why-I-sad...