Re: defmethod question....

2009-12-28 Thread Mike Meyer
On Sun, 27 Dec 2009 08:59:53 -0800 (PST) Jason Wolfe wrote: > > That doesn't seem to be possible - I can't find a function that > > accepts a PersistentStructMap and returns the symbol passed to struct > > so it knows the keylist to use for the arguments. Nor could I find the > > magic incantatio

Re: defmethod question....

2009-12-27 Thread Jason Wolfe
> That doesn't seem to be possible - I can't find a function that > accepts a PersistentStructMap and returns the symbol passed to struct > so it knows the keylist to use for the arguments. Nor could I find the > magic incantation to let me use those symbol names with derive, which > would let me u

defmethod question....

2009-12-27 Thread Mike Meyer
First, an aside: I was pleasantly surprised to find that the defmulti dispatch function could itself be polymorphic. Well, surprised isn't the right word - I half expected it to work. But it's always nice when new tools follow POLA. Which leads to a question where Clojure doesn't seem to follow PO