How can I get the Clojurescript namespace I am in from within a clojurescript program? I want to do this do provide certain debug information (it only needs to work in dev m
During macro-expansion you can access &env and retrieve namespace information from the :ns key like this:
&env
:ns
(:ns &env) (:name (:ns &env))
This only works at macro-expansion/compile time and not at runtime.