Extend causes error in servlet container?

2015-01-06 Thread peter . denhaan
I'm a relative newcomer to Clojure, and I'm puzzled by problems I have using extend in a webapp. Any help would be hugely appreciated. My use case is basically this: (defrecord FooRecord [msg]) (defprotocol FooProtocol (bar [foo] "to use with extend-type")) (extend FooRecord FooProtocol

Re: Extend causes error in servlet container?

2015-01-07 Thread peter . denhaan
Those are some very comprehensive responses indeed; thanks Michael. It makes sense now. I'll keep an eye on lein-ring and clojure upgrades and in the mean time work around it. Ghadi, you are of course right; thanks. I was playing around with extend so two types could share an implementation wit