你能混合使用JVM语言吗?即:Groovy& Clojure [英] Can you mix the JVM languages? ie: Groovy & Clojure
问题描述
这也意味着我可以有clojure和groovy代码交互作为好?如果我使用Grails或jRoR,我还可以在那个环境中使用clojure吗?
实际上产生Java类(即:Java平台已知的类,不一定是用Java语言编写的),然后是:他们可以很容易地相互交互。
至少对于Groovy我知道,完全可以编写可以从正常Java代码中使用的类。
I understand that you can easily mix groovy&java, clojure&java, whateverJvmLang&java.
Does this also mean I can have clojure and groovy code interact as well? If I use Grails or jRoR, can I also make use of clojure in that environment?
As long as the languages in question actually produce Java classes (that is: classes that are known to the Java platform, not necessarily written in the Java language), then yes: they can easily interact with each other.
At least for Groovy I know that it's entirely possible to write classes that can be used from "normal" Java code.
这篇关于你能混合使用JVM语言吗?即:Groovy& Clojure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!