Is it possible to get doc-string for a clojure interface or other syntactic entity?
<code>(defn documentedFun "documentedFun is documented" [] 123)
(assert (= (:doc (meta #'documentedFun)) "documentedFun"))
</code>
<code>(defn documentedFun "documentedFun is documented" [] 123)
(assert (= (:doc (meta #'documentedFun)) "documentedFun"))
</code>
(defn documentedFun "documentedFun is documented" [] 123)
(assert (= (:doc (meta #'documentedFun)) "documentedFun"))
An interface with doc attribute seems syntactically correct:
<code>(definterface ^{:doc "Eq is an interface"} Eq (^{:tell bool} eq [b]) )
</code>
<code>(definterface ^{:doc "Eq is an interface"} Eq (^{:tell bool} eq [b]) )
</code>
(definterface ^{:doc "Eq is an interface"} Eq (^{:tell bool} eq [b]) )
but REPL cannot parse doc
function applied to Eq.
<code>(doc Eq)
</code>
<code>(doc Eq)
</code>
(doc Eq)
Syntax error compiling var at (/tmp/form-init4163264810453251954.clj:1:1).
Expecting var, but Eq is mapped to interface hello_leiningen.core.Eq