So I have defined some vars to hold state data in my clojure code. I have just discovered I can add a doc-string to those vars e.g.:
(def ^{:doc "Documentation for *my-var*"}
*my-var*)
That lets me call (doc *my-var*)
at the REPL. This seems like a valid and useful thing to do but it doesn't seem like common practice in the (limited) code I have read.
Is this considered idiomatic clojure?