You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line should read instead (code-critic {:good (1 + 1) :bad (+ 1 1)})
As far as I understand the argument change is unrelated to the unquote splicing and just makes things more confusing. Please correct me if I'm wrong :)
Thanks for the great book. I'm enjoying it a lot
The text was updated successfully, but these errors were encountered:
I've been suggesting this book to a bunch of people... it's pretty great that I got this far before running into a code error... maybe this example could be fixed in the online version?
In Chapter 8, when explaining unquote splicing you change the macro arguments from 2 arguments to using a map and keywords. The example that follows is then incorrect (and doesn't run in my REPL)
https://github.com/braveclojure/cftbat-code/blob/master/08/code.clj#L231
This line should read instead
(code-critic {:good (1 + 1) :bad (+ 1 1)})
As far as I understand the argument change is unrelated to the unquote splicing and just makes things more confusing. Please correct me if I'm wrong :)
Thanks for the great book. I'm enjoying it a lot
The text was updated successfully, but these errors were encountered: