MultiMethod Interoperability with Java

2013-01-05 Thread rjf89
I'm kind of new to Clojure at the moment, and have been playing around re-writing some utility libraries from work in Clojure for import into other pieces of our infrastructure. I'm having a blast using it, but I've gotten a bit stuck on trying to implement something with Multimethods. I have

Re: MultiMethod Interoperability with Java

2013-01-05 Thread Sean Corfield
My first thought it that this is because (class nil) = nil so even tho' the 'correct' Java signature is matched and called, the multi-method dispatch is still invoked under the hood. So (String) null selects the [String] String signature, (class valueHolder) = nil so the :default implementation