4 ms·
>Rephrased, if I define classes Foo and Bar, and I write generic method foobar (accepts as params instances of Foo and Bar), where do I put foobar? This sounds
by ataggart 15y ago
>Rephrased, if I define classes Foo and Bar, and I write generic method foobar (accepts as params instances of Foo and Bar), where do I put foobar?
This sounds similar to the expression problem.
http://www.infoq.com/presentations/Clojure-Expression-Problem http://www.infoq.com/presentations/Clojure-Expression-Proble...
- Xurinos 15y agoGenerics/friends/multimethods are one of the solutions identified on the slides you posted (and protocols are interesting), but I did not see mention of appropriate namespaces for these.