brave-clojure-web
brave-clojure-web copied to clipboard
Writing Macros - fixed a broken function call of code-critic
In Chapter 8, right before Things to Watch Out For there is a macro code-critic which uses keyword arguments. However the example call of code-critic does not pass a map, which leads to ArityException.
in short:
replaced
(code-critic (1 + 1) (+ 1 1))
with
(code-critic {:bad (1 + 1), :good (+ 1 1)})