O'Reilly logo

Clojure Programming Cookbook by Nicolas Modrzyk, Makoto Hashimoto

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining more advanced macros

When we started thinking about the structure of the book, it all kind of made sense to talk about simple macros and advanced macros. Now, arriving at the topic, the author has to admit it is not so clear anymore. So, what do we mean when we talk about advanced macros? We tried to ask Canon, but they would not give us a proper answer.

In this recipe, we will therefore state that an advance macro is a macro that generates a form that changes the flow of the evaluation of the resulting code. In the previous recipe on simple macros, the macros were, well, simple, because the form generated was always the same. This recipe will expose macros that always generate the same code or where the control flow gets slightly more ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required