brave-clojure-web icon indicating copy to clipboard operation
brave-clojure-web copied to clipboard

Writing Macros - fixed a broken function call of code-critic

Open josby opened this issue 8 years ago • 0 comments

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)})

josby avatar Mar 12 '17 20:03 josby