How to Read This Book

There are lots of code examples in this book, and I suggest trying them out in your own REPL, creating a toy project for the longer examples. Leiningen[3] is the Clojure build tool of choice, and lein new macrobook will give you a new project to play around in. The examples in this book have been tested using Clojure 1.6.0, so you’re safest using that version of Clojure when you try things out. But since the macro system changes so rarely, I anticipate that many earlier and future versions will work just fine as well.

This book is intended to be read front to back, but if you’re the adventurous or time-constrained sort, here are a few ideas to get you the information you’re looking for:

The first two chapters, Chapter 1, ...

Get Mastering Clojure Macros 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.