(defmulti
simple-dispatch
"The pretty print dispatch function for simple data structure format."
{:added "1.2" :arglists '[[object]]}
class)
Code like this should be written with protocols. There are reasons to stick with multimethods but as both a performance nit and a "best tool for the job" nit, protocols are preferred.
From clojure.pprint:
Code like this should be written with protocols. There are reasons to stick with multimethods but as both a performance nit and a "best tool for the job" nit, protocols are preferred.