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 ...
Get Clojure Programming Cookbook 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.