5 ms·
Clojure's Approach to Polymorphism
- strlen 16y agoHere's a great introduction to how CLOS (definitely the inspiration for this) does multiple dispatch: http://www.gigamonkeys.com/book/object-reorientation-generic-functions.html http://www.gigamonkeys.com/book/object-reorientation-generic... This is also possible (perhaps, non-idiomatically) with Python and Perl: http://www.artima.com/weblogs/viewpost.jsp?thread=101605 http://www.artima.com/weblogs/viewpost.jsp?thread=101605 http://search.cpan.org/dist/MooseX-MultiMethods/lib/MooseX/MultiMethods.pm http://search.cpan.org/dist/MooseX-MultiMethods/lib/MooseX/M...