-
-
Save AeroNotix/f04ca13a2df8aa30c176 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
(defmacro idiodef [name value] | |
(let [name (if (symbol? name) | |
(resolve name) | |
name)] | |
`(def ~(symbol name) ~value))) | |
(macroexpand '(let [foo "foo"] (defcloud.core/idiodef foo :bar))) | |
;; => (let* [foo "foo"] (defcloud.core/idiodef foo :bar)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment