I wanted to enumerate the macros of cljs.core
in ClojureScript. In general, it would not be needed for everyday ClojureScrit programming but I need it to author my debux library.
At first, I asked a question about this problem in Google Clojure Group but got no answers.
I decided to find the way by myself and finally found a way to enumerate the macros of cljs.core
in Clojure REPL, so I want to share the exprerience with others here.
The functions of cljs.core
are defined in src/main/cljs/cljs/core.cljs
and the macros of cljs.core
are defined in src/main/clojure/cljs/core.cljc
. So you have to evaluate the src/main/clojure/cljs/core.cljc
file in Clojure REPL, not in ClojureScript REPL, to get a list of the macros of cljs.core
.