How to write clojure documentation for a single function in a protocol? -
let's have protocol this:
(defprotocol x (y [this z])) how write documentation targeted function y?
the normal way doing be:
(defn y "some documentation" []) but if do:
(defprotocol x (y "some documentation" [this z])) i following exception:
java.lang.illegalargumentexception: parameter declaration missing so how add kind of documentation?
(defprotocol x (y [this z] "some documentation"))
Comments
Post a Comment