Previous Episode: Ep 086: Let Tricks
Next Episode: Ep 088: Do Dorun Run!

We discuss polymorphism and how we tackle dynamic data with families of functions.

Each week, we discuss a different topic about Clojure and functional programming.


If you have a question or topic you'd like us to discuss, tweet @clojuredesign, send an email to [email protected], or join the #clojuredesign-podcast channel on the Clojurians Slack.


This week, the topic is: "multimethods." We discuss polymorphism and how we tackle dynamic data with families of functions.


Selected quotes:

"You don't have to reach for polymorphism as quickly in Clojure."
"Polymorphism at its simplest."
"A natural fit for processing a list of heterogeneous things."
"Our natural tool of computation: the function."

Links:

defmulti
defmethod
Multimethods and Hierarchies
defmethod in Pyrite font

Twitter Mentions