Wrapping Up

In this chapter we explored the ideas behind Clojure’s somewhat odd but it grows on you after a while syntax. We saw how Clojure syntax is a bit odd because it’s a compromise between being a good programming-language syntax and a good syntax for data. But that compromise pays off in a big way: by using the same syntax and data structures for code and data, we can roll the entire Clojure programming language into two simple functions: read and eval.

Now that you understand the ideas behind Clojure’s syntax, it’s time to turn to the final topic of this book: macros.

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.