I've been trying to add docstrings to my constants that are defined using 'def'. According to the webpage[1] I should be able to write:
(def pi "hello" 3.14) But this fails with: java.lang.Exception: Too many arguments to def (NO_SOURCE_FILE:1) This is with Clojure 1.2.0. Note the slightly longer syntax works just fine, but this isn't picked up by Marginalia. :/ user=> (def ^{:doc "hello"} pi 3.14) #'user/pi user=> (doc pi) ------------------------- user/pi nil hello nil 1: http://clojure.org/special_forms#Special%20Forms--(def%20symbol%20doc-string?%20init?) -- Paul Richards @pauldoo -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en