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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -