有Java的Coffeescript吗?换句话说,X被编译为Java [英] Is there a Coffeescript for Java? In other words X gets compiled to Java

查看:164
本文介绍了有Java的Coffeescript吗?换句话说,X被编译为Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一种语言被编译为Java代码(不是字节代码,但是Java ..所以没有Groovy,Scala,Jython,JRuby等)。

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

换句话说,有一个CoffeeScript for Java?

In other words is there a CoffeeScript for Java?

我对Java的一个主要缺陷是,它那么肮脏的冗长,它没有多重继承。看起来合理的,可以通过代码生成清除语法add mixins / traits和closure。

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.

是不是很优雅,但是coffeescript。 b $ b

Yeah its not elegant but coffeescript does it.

推荐答案

是的, Xtend 。这是Eclipse人员为您提供的一种新语言: http://www.eclipse.org/xtend/

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

没有多重继承(这将是对Java语义的根本改变),但是很多语法糖,就像CoffeeScript。

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

另请参阅Mirah: http://www.mirah.org/

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

这篇关于有Java的Coffeescript吗?换句话说,X被编译为Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆