You are previewing The Joy of Clojure.

The Joy of Clojure

Cover of The Joy of Clojure by Chris Houser... Published by Manning Publications
O'Reilly logo

Chapter 9. Combining data and code



Clojure provides powerful features for grouping and partitioning logical units of code and data. Most logical groupings occur within namespaces, Clojure’s analogue to Java packages. We explore how to build, manipulate, and reason about them. Also, in this chapter we’ll play with Clojure’s powerful multimethods that provide polymorphism based on arbitrary dispatch functions. We then uncover recent additions to Clojure supporting abstraction-oriented programming—types, protocols, and records. Finally, the chapter concludes ...

The best content for your career. Discover unlimited learning on demand for around $1/day.