I’m new to Clojure and finding my sea legs. I was wondering whether it is considered good or bad practice, from a functional programming standpoint, to put functions in Clojure maps and then pass those maps around like quasi-objects, as is often done in JavaScript. Explanations will also be appreciated.
Share
Clojure’s multimethods are essentially maps of functions, so no, it’s not a bad idea at all.