Can you mix the JVM languages? ie: Groovy & Clojure

前端 未结 6 884
难免孤独
难免孤独 2021-02-13 21:27

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

6条回答
  •  无人及你
    2021-02-13 22:18

    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.

提交回复
热议问题