kibit
kibit copied to clipboard
Don't report anonymous functions with special forms in them
trafficstars
Currently, Kibit reports that an anonymous function with a special form in it, (eg, (fn [x] (throw x)) can be shorthanded as throw. As special forms don't play by the rules, this is not working.
Kibit version: 0.1.2.
This is a really good idea. Thanks!
Also macros. It suggests:
Consider using:
when
instead of:
#(when %1 %2)
But if I do as it suggests, I get a compilation error: java.lang.RuntimeException: Can't take value of a macro: #'clojure.core/when
Edit: just noticed this was already reported in #142