Macro example: when


#1

Originally published at: https://purelyfunctional.tv/clojure-macros/macro-example-when/
Clojure’s built-in when is a macro that expands into if. Let’s write a version ourselves.