Skip to main content

Tomasz Nurkiewicz: Macro lifecycle in Clojure

If you still struggle to understand macros in Clojure and why are they so useful, I will guide you through another example today. We will learn when macros are recognized, evaluated, expanded and executed. I believe the most important concept is their similarity to normal functions. As I described last time, macros are ordinary functions but executed at compile time and taking code rather than values as arguments...

Community: General