|def coffeescript = new ScriptEngineManager().getEngineByName('coffeescript').factory.scriptEngine|
|square = (x) -> x * x|
|return square 3''') == 9|
I have this silly idea few day ago that it would be fantastic if you can write some code in CoffeeScript instead of Groovy because as soon as you start to use CoffeeScript more you find a plethora of unnecessary brackets everywhere. I'm totally lame in writing anything non-trivial such as class loaders or or compilers but the idea is
The point is to be able to call Groovy code from CoffeeScript and on the other hand to be able to declare classes in CoffeeScript which can be called later from Groovy.
And idea how to achieve with small effort e.g. global AST executed in very early phase?