Peter Marklund

Peter Marklund's Home

2015-07-24T06:16:55.789Z

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: