CoffeeScript 太酷了。是否有任何语言使用coffee语法但在jvm上运行,例如groovy、scala? Python 的语法并不酷。我不能在我的代码中使用这么多 xx,self ,那太难看了。
最佳答案
是。 CoffeeScript compiles into plain old JavaScript ,其中can be executed by modern JVMs (v6+) .
顺便说一下,你对比 Python 的语法很有趣,因为 both languages depend on whitespace as syntax (这是一个有争议的话题!)。无论如何,黑客快乐!
[编辑]这是对using JavaScript on the JVM的更有用的介绍。 .
关于java - Java 版 CoffeeScript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9306420/