Fork me on GitHub
#clojure-dev
<
2017-07-17
>
dm316:07:36

In Clojurescript it seems that the &env passed to macros contains the def vars as well as locals. Is it possible to get the same effect in Clojure?

seancorfield16:07:24

@dm3 If I'm understanding what you're asking, you'd just call (ns-publics *ns*) wouldn't you?

seancorfield16:07:53

I suspect cljs passes def vars since it doesn't/didn't have a lot of the namespace and var machinery?

noisesmith16:07:04

if you really wanted you could even use all-ns in your macro to find other namespaces that may exist…

dm316:07:58

I see, thx