Re: Reflecting over protocols in macros for clojurescript

2012-09-03 Thread Ceri Storey
2012/9/3 David Nolen > On Mon, Sep 3, 2012 at 5:57 PM, Ceri Storey wrote: > > Okay--I'd missed that the information gets recorded in the namespaces > var in > > cljs.analyse, so I think that I shoudl be able to do what I want with a > > combination of cljs.analyse/resolve-var , get-namespaces, a

Re: Reflecting over protocols in macros for clojurescript

2012-09-03 Thread David Nolen
On Mon, Sep 3, 2012 at 5:57 PM, Ceri Storey wrote: > Okay--I'd missed that the information gets recorded in the namespaces var in > cljs.analyse, so I think that I shoudl be able to do what I want with a > combination of cljs.analyse/resolve-var , get-namespaces, and inspecting the > results. Is t

Re: Reflecting over protocols in macros for clojurescript

2012-09-03 Thread Ceri Storey
2012年9月3日月曜日 16時54分34秒 UTC+1 David Nolen: > > On Mon, Sep 3, 2012 at 5:20 AM, Ceri Storey > > wrote: > > Are you referring to the ability when using Clojure on the JVM to get > the map of data from referencing the protocol itself? > I did not even know you could do that, but that does look l

Re: Reflecting over protocols in macros for clojurescript

2012-09-03 Thread David Nolen
On Mon, Sep 3, 2012 at 5:20 AM, Ceri Storey wrote: > Hi there. > > I'm having a play around with ClojureScript, and I'd find it really useful > to be able to be able to create some Mockito style test spies. Ultimately, > I'd like to be able to generate a spie by reflecting over a protocol and > fi

Re: Reflecting over protocols in macros for clojurescript

2012-09-03 Thread Ceri Storey
(with apologies for the accidental double posting). 2012/9/3 Ceri Storey > Hi there. > > I'm having a play around with ClojureScript, and I'd find it really useful > to be able to be able to create some Mockito style test spies. Ultimately, > I'd like to be able to generate a spie by reflecting