Search code examples
scalaclojureinteropjvm-languages

Scala and Clojure both in one project


I'm looking for a guide for polyglot programming in this two languages.

I know that interop between them is possible, since they are both running on the same Java VM, and both got compiled to the same bytecode. But there is some cumbersomes:

  • Can I use to compile Clojure code?
  • Can I use to compile Scala code?

( Yeah, yeah, I know I can just plug in jar from one language to project in other lang.)

So the question is How to setup polyglot development in Scala and Clojure?


Solution

  • I've not used it, but Leiningen does have scalac support.