Re: ClojureScript & protocols

2012-08-08 Thread David Nolen
On Wed, Aug 8, 2012 at 3:52 AM, Alexander Solovyov wrote: > On Wed, Aug 8, 2012 at 4:47 AM, David Nolen wrote: >>> Ok, I figured out (well, not I, but m0smith from #clojure): protocols >>> should be imported using :require :as, rather than :use :only. >> >> This seems like a bug to me. > > Sure,

Re: ClojureScript & protocols

2012-08-08 Thread Alexander Solovyov
On Wed, Aug 8, 2012 at 4:47 AM, David Nolen wrote: >> Ok, I figured out (well, not I, but m0smith from #clojure): protocols >> should be imported using :require :as, rather than :use :only. > > This seems like a bug to me. Sure, it does look as one to me as well. Should I do something about it? C

Re: ClojureScript & protocols

2012-08-07 Thread David Nolen
On Tue, Aug 7, 2012 at 3:03 PM, Alexander Solovyov wrote: > On Mon, Aug 6, 2012 at 10:44 AM, Alexander Solovyov > wrote: >> I have a simple protocol Map here: >> https://github.com/piranha/cj-locations/blob/master/src/map.cljs >> >> And an implementation of it here (I tried with extend-type as we

Re: ClojureScript & protocols

2012-08-07 Thread Alexander Solovyov
On Mon, Aug 6, 2012 at 10:44 AM, Alexander Solovyov wrote: > I have a simple protocol Map here: > https://github.com/piranha/cj-locations/blob/master/src/map.cljs > > And an implementation of it here (I tried with extend-type as well): > https://github.com/piranha/cj-locations/blob/master/src/goog

ClojureScript & protocols

2012-08-06 Thread Alexander Solovyov
Hi all, I'm trying to get simple ClojureScript application to work. I have a simple protocol Map here: https://github.com/piranha/cj-locations/blob/master/src/map.cljs And an implementation of it here (I tried with extend-type as well): https://github.com/piranha/cj-locations/blob/master/src/goo