Re: Circular dependencies (Clojure and Java)

2009-10-16 Thread jng27
To deal with the problem the ideal solution would be supporting something along these lines. It's probably inevitable that at some point the Clojure compiler would have be modified. On Oct 15, 12:17 pm, Manuel Woelker wrote: > On Thu, Oct 15, 2009 at 5:48 AM, jng27 wrote: > > > The following se

Re: Circular dependencies (Clojure and Java)

2009-10-16 Thread jng27
On Oct 15, 11:48 am, Stuart Sierra wrote: > On Oct 15, 7:56 am, Laurent PETIT wrote: > > > if the clojure classes depend on the java classes in the implementation and > > not in their interfaces ( extends, implements, methods signatures ), then > > you can write your gen-class with a separate

Re: Circular dependencies (Clojure and Java)

2009-10-15 Thread Laurent PETIT
2009/10/15 Manuel Woelker > > On Thu, Oct 15, 2009 at 9:43 PM, Laurent PETIT > wrote: > > 2009/10/15 Manuel Woelker > >> > >> On Thu, Oct 15, 2009 at 5:48 AM, jng27 wrote: > >> > > >> > The following seems like it could be a common scenario when attempting > >> > to re-write parts of an existi

Re: Circular dependencies (Clojure and Java)

2009-10-15 Thread Manuel Woelker
On Thu, Oct 15, 2009 at 9:43 PM, Laurent PETIT wrote: > 2009/10/15 Manuel Woelker >> >> On Thu, Oct 15, 2009 at 5:48 AM, jng27 wrote: >> > >> > The following seems like it could be a common scenario when attempting >> > to re-write parts of an existing Java application in Clojure. >> > >> > Let

Re: Circular dependencies (Clojure and Java)

2009-10-15 Thread Laurent PETIT
2009/10/15 Manuel Woelker > > On Thu, Oct 15, 2009 at 5:48 AM, jng27 wrote: > > > > 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 > > '

Re: Circular dependencies (Clojure and Java)

2009-10-15 Thread Manuel Woelker
On Thu, Oct 15, 2009 at 5:48 AM, jng27 wrote: > > 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

Re: Circular dependencies (Clojure and Java)

2009-10-15 Thread Laurent PETIT
2009/10/15 Stuart Sierra > > On Oct 15, 7:56 am, Laurent PETIT wrote: > > if the clojure classes depend on the java classes in the implementation > and > > not in their interfaces ( extends, implements, methods signatures ), then > > you can write your gen-class with a separate namespace for the

Re: Circular dependencies (Clojure and Java)

2009-10-15 Thread Stuart Sierra
On Oct 15, 7:56 am, Laurent PETIT wrote: > if the clojure classes depend on the java classes in the implementation and > not in their interfaces ( extends, implements, methods signatures ), then > you can write your gen-class with a separate namespace for the > implementation of the class ( using

Re: Circular dependencies (Clojure and Java)

2009-10-15 Thread Laurent PETIT
Hello, One solution I've applied in the past: if the clojure classes depend on the java classes in the implementation and not in their interfaces ( extends, implements, methods signatures ), then you can write your gen-class with a separate namespace for the implementation of the class ( using :i

Circular dependencies (Clojure and Java)

2009-10-15 Thread jng27
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