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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access