Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I get metadata for a namespace?

If I put metadata in a namespace declaration:

(ns 
^{:doc "Myspace documentation"}
myspace
)

can I get it ? I tried (meta myspace), (meta #'myspace) but I can't get it

like image 403
Hendekagon Avatar asked Oct 18 '12 04:10

Hendekagon


1 Answers

If you are currently in that namespace, you can do this

myspace=> (meta *ns*)
{:doc "Myspace documentation"}

If you are NOT in the namespace, you can use find-ns

foo=> (meta (find-ns 'myspace))
{:doc "Myspace documentation"}
like image 52
Kyle Avatar answered Sep 25 '22 10:09

Kyle