Re: defmulti is a defonce?

2016-04-01 Thread Kenneth Tilton
Pure genius. :) And once I have the method working as I want I can swap in the code. Thx! -kt On Fri, Apr 1, 2016 at 12:15 PM, Gary Trakhman wrote: > I usually work around this by putting the dispatch in a separate def and > referencing the var within defmulti. > > (defmulti my-multi #'my-dispa

Re: defmulti is a defonce?

2016-04-01 Thread Gary Trakhman
I usually work around this by putting the dispatch in a separate def and referencing the var within defmulti. (defmulti my-multi #'my-dispatch) It's barely slower for the extra var dereference and very convenient for development. On Fri, Apr 1, 2016 at 12:10 PM hiskennyness wrote: > I just kil

defmulti is a defonce?

2016-04-01 Thread hiskennyness
I just killed two hours trying to figure out why my tweaks to the dispatch function of defmulti did not work. Finally got the feeling I had found a bug in Clojure, but then I found a comment somewhere saying it is a feature, effectively a defonce (and, yes, looking at the source I see it does n