4 ms·
This seems like a lot of work for a result that isn't even very self documenting compared to some earlier efforts e.g. Guido's post on multimethods: https://ww
by arunix 7y ago
This seems like a lot of work for a result that isn't even very self documenting compared to some earlier efforts e.g.
Guido's post on multimethods: https://www.artima.com/weblogs/viewpost.jsp?thread=101605 https://www.artima.com/weblogs/viewpost.jsp?thread=101605
Clojure style multimethods: https://adambard.com/blog/implementing-multimethods-in-python/ https://adambard.com/blog/implementing-multimethods-in-pytho...
- throwaway_pdp09 7y agoI remember reading the multimethods post and thinking it was wrong as it does not dispatch on all arguments, as dylan would (and I believe closure would too) - correct me if I'm wrong though.
- arunix 7y agoIt does dispatch on the types of all arguments, ... that's the point of it. Some sample code (I modified it to be commutative on the argument types): https://gist.github.com/arunbear/caef7546d297c01fddbd3f671179bb70 https://gist.github.com/arunbear/caef7546d297c01fddbd3f67117...