Multimethods vs. cond?

2010-02-11 Thread Bryce
I'm wondering what the rationale is for using multimethods vs. cond, and where it's best to use either? Multimethods seem to be very seldom used, usually to dispatch on type, but I can see advantages to using data to dynamically define only the methods you need, rather than

Re: Multimethods vs. cond?

2010-02-11 Thread Laurent PETIT
2010/2/11 Bryce : > I'm wondering what the rationale is for using multimethods vs. cond, > and where it's best to use either?  Multimethods seem to be very > seldom used, usually to dispatch on type, but I can see advantages to > using data to dynamically define only the me

Re: Multimethods vs. cond?

2010-02-11 Thread David Nolen
On Thu, Feb 11, 2010 at 10:27 AM, Laurent PETIT wrote: > 2010/2/11 Bryce : > > I'm wondering what the rationale is for using multimethods vs. cond, > > and where it's best to use either? Multimethods seem to be very > > seldom used, usually to dispatch on ty

Re: Multimethods vs. cond?

2010-02-11 Thread Jeff Rose
I've seen or done with them. -Jeff On Feb 11, 4:27 pm, Laurent PETIT wrote: > 2010/2/11 Bryce : > > > I'm wondering what the rationale is for using multimethods vs. cond, > > and where it's best to use either?  Multimethods seem to be very > > seldom used

Re: Multimethods vs. cond?

2010-02-11 Thread Raoul Duke
hi, the expression problem (http://en.wikipedia.org/wiki/Expression_Problem) talks about some of the relevant trade-offs. sincerely. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note t

Re: Multimethods vs. cond?

2010-02-12 Thread Daniel Werner
On Feb 11, 4:04 pm, Bryce wrote: > I'm wondering what the rationale is for using multimethods vs. cond, > and where it's best to use either?  Multimethods seem to be very > seldom used, usually to dispatch on type, but I can see advantages to > using data to dynamically d