How can I get namespace metadata? In repl I do:
=> (in-ns my.test)
#<Namespace my.test>
=> (meta *ns*)
{:a "hello"}
=> ; Return back to repl namespace:
(in-ns 'user)
; Or use 'with-ns
My namespace definition is:
(ns ^{:a "hello"} my.test
...)
Any of (meta #'my.test)
variants fail, although it works good for def
-ined entities. I can understand that (ns...)
doesn't define a variable and *ns*
is a special var that I cannot reference outside, but I'm in doubt what really happens.