3 ms·
Case statements complect who/what pairs, so simplifying them by disentangling them should be a good idea. Clojure has really neat runtime polymorphism ( http://
by Jach 15y ago
Case statements complect who/what pairs, so simplifying them by disentangling them should be a good idea. Clojure has really neat runtime polymorphism ( http://clojure.org/runtime_polymorphism http://clojure.org/runtime_polymorphism ) that is one way to accomplish this without necessarily wading into type hell, and your multimethods end up looking like data.
"Clojure supports sophisticated runtime polymorphism through a multimethod system that supports dispatching on types, values, attributes and metadata of, and relationships between, one or more arguments."