The following seems like it could be a common scenario when attempting to re-write parts of an existing Java application in Clojure. Let's say there exists Clojure code and Java code in the same project. The Clojure code depends on the Java code in one direction and then the same is true in the opposite direction. Given that compiling Java and Clojure require separate and different compilation steps, how would circular dependencies be resolved ? e.g. A class is defined in the Clojure code that references Java classes(yet to be compiled) and the same is true for the Java code referencing classes defined in Clojure(yet to be compiled). It doesn't seem like compiling one before the other would solve this issue.There was a short discussion in the Clojure group(which didn't seem to gain much traction).
http://groups.google.com/group/clojure/browse_thread/thread/84bd18b3ceeae0e8/95bd40d25290c167?lnk=gst&q=circular#95bd40d25290c167
Does anyone here have some good ideas ?