KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel