Hi Clojure Gurus :)
I've a somewhat contrived use-case for macros that I've been
struggling with.
Let's say there's an interface called EWrapper that I'm trying to
implement with methods "tickPrice" and "tickSize", a concrete class
EWrapperMsgGenerator that has methods with those names that retur
er macro, but this pretty
well-defined.
Thanks,
Jian
On Jun 18, 10:52 am, David Nolen wrote:
> On Fri, Jun 17, 2011 at 11:51 PM, Jian Liu wrote:
> > Hi Clojure Gurus :)
>
> > I've a somewhat contrived use-case for macros that I've been
> > struggling with.
l runtime
rather than macro-expand time. Would memfn work?
E.g. something like (apply (memfn tickPrice) EWrapperMsgGenerator
args)? Or does that only work for instance methods
(EWrapperMsgGenerator is static).
On Jun 18, 11:45 am, Jian Liu wrote:
> Hi David,
>
> Yes, the expansion I essenti