Wrapping Up

In this chapter we took a tour of clojure.spec, a Clojure library for verifying the shape of data. We looked at the ins and outs of specifying the various basic data types and collections and at how to assemble simple specs into more intricate ones. We also saw how you can register your specs in a JVM-wide registry and how you can use clojure.spec to improve the quality of your code.

With this look at clojure.spec you’ve hit another milestone in your Clojure journey. Along with the basics, you now know enough about the features of Clojure that it’s time to start thinking beyond the language. So in the next part we’ll look at how you can use Clojure to interact with the wider world, a world where you need to call Java libraries and ...

Get Getting Clojure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.