Re: defmulti and defmethods in separate namespaces without circular references?

2012-03-02 Thread Cymen Vig
On Friday, March 2, 2012 7:03:10 AM UTC-6, tim.visher wrote: > > I will not in any way claim to know how or why this works. I'm just > starting to use multimethods myself, but I'll give you my set up that > appears to be working at the moment. > > I have a namespace: > > (ns store.store) > >

defmulti and defmethods in separate namespaces without circular references?

2012-03-01 Thread Cymen Vig
I attempted to do something like this: (ns parent) (defmulti my-method (fn [x] (:method x)) (ns child1) (defmethod my-method :zzz ...) (ns child2) (defmethod my-method :aaa ...) However the problem is the children need to use the parent namespace in order to have the method definition and