-
-
Save anonymous/da2c822bcf20a81cb103 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn- unquote-project | |
"Inside defproject forms, unquoting (~) allows for arbitrary evaluation." | |
[args] | |
(walk/walk (fn [item] | |
(cond (and (seq? item) (= `unquote (first item))) (second item) | |
;; needed if we want fn literals preserved | |
(or (seq? item) (symbol? item)) (list 'quote item) | |
:else (unquote-project item))) | |
identity | |
args)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment