Hi,

I've seen this particular discussion - 
https://groups.google.com/d/topic/clojure/Ia9uBDGuLmM/discussion

I am talking specifically about multimethods here. So if you do -

(defmulti my-method
  "some doc string"
  identity)

then this particular doc-string is not visible in emacs (like in an 
auto-complete env. where doc-strings are shown.)

But if you do -

(defmulti #^{:doc "meta doc string"}
  my-method
  identity)

Then this particular doc-string "meta doc string" is visible in emacs.

So is it idiomatic clojure to put doc-strings for multimethods in #^{:doc 
""} where as for plain methods (defn) we should write a string after the 
method name and before the arglist?

Thanks,
Manoj.

-- 
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

Reply via email to