Peter Marklund's Home |
Using Clojure Multimethods for Polymorphism and Inheritance
It's fascinating how simple and powerful the multimethod feature in Clojure is. It provides a way to support polymorphism and inheritance that we are used to from object oriented languages: