Re: Arity problem with multi-methods

2021-05-19 Thread Zyxmn Daley Jes
Thank you all! On Friday, July 19, 2019 at 4:49:33 PM UTC+1 art.gol...@gmail.com wrote: > Seven years later, a big thank you from me. I was also being driven crazy > by this bug. It is insane that this not better documented. In any case it > should have been fixed by now. > > > On Thursday, Nov

Re: Arity problem with multi-methods

2019-07-19 Thread Art Goldhammer
Seven years later, a big thank you from me. I was also being driven crazy by this bug. It is insane that this not better documented. In any case it should have been fixed by now. On Thursday, November 22, 2012 at 2:51:03 AM UTC-5, Baishampayan Ghose wrote: > > Christian, > > defmulti has defonc

Re: Arity problem with multi-methods

2012-11-21 Thread Baishampayan Ghose
Christian, defmulti has defonce-like semantics which I guess is to prevent the associated defmethods from being wiped out when the form is recompiled. Cite - https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L1622 -BG On Wed, Nov 21, 2012 at 11:45 PM, Christian Sperandio

Re: Arity problem with multi-methods

2012-11-21 Thread Christian Sperandio
Thank you ! I became crazy because I didn't see the problem in my code. Why is there this issue with multi-methods? (and not with standard functions) Chris Le 22 nov. 2012 à 02:34, grinnbearit a écrit : Hi Chris, If you change multimethod arities you'll have to def the multimethod to nil or

Re: Arity problem with multi-methods

2012-11-21 Thread grinnbearit
Hi Chris, If you change multimethod arities you'll have to def the multimethod to nil or restart the swank/nrepl server. It doesn't update that on recompilation. Sidhant On Thursday, November 22, 2012 3:44:10 AM UTC+5:30, Christian Sperandio wrote: > > Hi, > > I try to define multi-methods but

Arity problem with multi-methods

2012-11-21 Thread Christian Sperandio
Hi, I try to define multi-methods but when I call one I get an exception. I declared the multi-methods like below: (defmulti new-food-item (fn [food expiration] (if (number? expiration) ::duration ::expiration-date