4 ms·
What about method dispatch in CLOS, pretty sure that counts as "does everything better" - at least when it comes to mapping tuples of values to methods.
by arethuza 8y ago
What about method dispatch in CLOS, pretty sure that counts as "does everything better" - at least when it comes to mapping tuples of values to methods.
- kazinator 8y agoMethod dispatch is arguably a form of pattern matching: pattern matching on the type signature of the argument tuple. (With eql specializers, on the object/numeric identities of the arguments, not only types).
- Jtsummers 8y agoAnd with some CLOS extensions, it can also be extended to other filters besides just eql specializers (this is also in Clojure's implementation of multiple dispatch).
- Jtsummers 8y agohttp://www.p-cos.net/documents/filtered-dispatch.pdf http://www.p-cos.net/documents/filtered-dispatch.pdf The link I meant to include before.