You can use macroexpand to see in the repl what a macro expands to. E.g. (macroexpand '(defn foo [] 1)). This is useful both in debugging your own macros, as well as trying to learn from the clojure/core macros.
– liwp
May also use (source defn) to directly inspect the source code.
– dqc
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
macroexpand
to see in the repl what a macro expands to. E.g.(macroexpand '(defn foo [] 1))
. This is useful both in debugging your own macros, as well as trying to learn from the clojure/core macros. – liwp(source defn)
to directly inspect the source code. – dqc