javacoffeescriptprogramming-languagescode-generation

Is there a Coffeescript for Java? In other words X gets compiled to Java


Is there a language that gets compiled to Java code (not Byte code but Java .. so no Groovy, Scala, Jython, JRuby etc.)?

In other words is there a CoffeeScript for Java?

One of the major flaws I have against Java is that its so damn verbose and that it doesn't have multiple inheritance. It seems reasonably that one could just clean up the syntax add mixins/traits and closures through code generation.

Yeah its not elegant but coffeescript does it.


Solution

  • Yep, Xtend. It's a new language brought to you by the Eclipse folks: http://www.eclipse.org/xtend/

    No multiple inheritance (that would be a fundamental change to Java semantics), but lots of syntactic sugar, just like CoffeeScript.

    Also take a look at Mirah: http://www.mirah.org/