3 ms·
> Multimethods are untyped. Anyone able to comment on how often multimethods are used in idiomatic Clojure code? Not at all. Multimethods were Hickeys solutio
by Tuna-Fish 14y ago
> Multimethods are untyped. Anyone able to comment on how often multimethods are used in idiomatic Clojure code?
Not at all.
Multimethods were Hickeys solution to polymorphism before the Haskell enthusiasts managed to preach the gospel of type classes to him. Today, they are more or less deprecated as a solution to a problem.
- fogus 14y ago> Not at all. This is categorically false. Multimethods solve a certain problem "open arbitrary function dispatch". Nothing in Clojure aside from multimethods solves this problem. There are many projects that use multimethods to their great advantage, including, but not limited to: * Clojure * ClojureScript * ClojureScript One
- samaaron 14y agoOvertone also uses multimethods in a number of places. They're crazy powerful and useful.
- Rayne 14y agoThey are not even remotely deprecated.