Should I send a pull request to the orientdb-studio repository?
(The code-mirror editor behaves a bit strange - it only starts showing the existing code after I type one charecter - , but I don't have too much experience with that)
Apart from that it pretty much works. Maybe someone should check out my github repository (mrft) and look at it before we merge it into the master studio repository?
Anyway the concept is that an extra property gets added called icedcoffeescript or livescript, and when that property is present it gets compiled and saved along with the OFunction document.
That's basically it.
The nice thing is that when a compile error occurs, the javascript function will contain
return "[Compiler error] ...";
in the javascript function body, so the other functions will still work, so you can continue working on a new unfinished function without impacting all the other functions.