Re: Docstrings in Clojure?

2010-08-28 Thread Paddy3118
Thanks guys. I have mentioned Clojure in the Wikipedia entry for Docstrings at: http://en.wikipedia.org/wiki/Docstring On 19 Aug, 21:22, Paddy3118 wrote: > Hi, Does clojure have docstrings:http://en.wikipedia.org/wiki/Docstring > and, if so, do you have a link to the feature in the Clojure > docu

Re: Docstrings in Clojure?

2010-08-20 Thread Meikel Brandmeyer
> Do you have a link to this in the official Clojure documentation? I > would like to add the link to the Wikipedia article. http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/defn -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Docstrings in Clojure?

2010-08-20 Thread Paddy3118
On Aug 19, 9:37 pm, Joop Kiefte wrote: > (defn function-name >     "Your docstring goes here" >     [your argument list & more] >    (call some functions)) > > 2010/8/19 Paddy3118 : > > > Hi, Does clojure have docstrings:http://en.wikipedia.org/wiki/Docstring > > and, if so, do you have a link t

Re: Docstrings in Clojure?

2010-08-19 Thread Meikel Brandmeyer
Hi, On 20 Aug., 07:18, ngocdaothanh wrote: > > (defn foo > >    "..." > >    ([a] ...) > >    ([a b] ...)) > > Is there any way to add docstring for each case? (One for summary, one > for [a], and one for [a b].) No. (And honestly: I don't see any use for this. Why is one docstring not enough to

Re: Docstrings in Clojure?

2010-08-19 Thread ngocdaothanh
> (defn foo >    "..." >    ([a] ...) >    ([a b] ...)) Is there any way to add docstring for each case? (One for summary, one for [a], and one for [a b].) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: Docstrings in Clojure?

2010-08-19 Thread David Nolen
On Thu, Aug 19, 2010 at 10:09 PM, Ameen wrote: > So it is before arguments. What is the motivation behind that > opposition to other lisps and python ? > Functions support mutiple arity. (defn foo "..." ([a] ...) ([a b] ...)) -- You received this message because you are subscribed to

Re: Docstrings in Clojure?

2010-08-19 Thread Ameen
So it is before arguments. What is the motivation behind that opposition to other lisps and python ? On 19 août, 22:37, Joop Kiefte wrote: > (defn function-name >     "Your docstring goes here" >     [your argument list & more] >    (call some functions)) > > 2010/8/19 Paddy3118 : > > > Hi, Does

Re: Docstrings in Clojure?

2010-08-19 Thread Grayswx
On Aug 19, 4:37 pm, Joop Kiefte wrote: > (defn function-name > "Your docstring goes here" > [your argument list & more] >(call some functions)) And then you can access it with (doc function-name). (find-doc #"regexp") or (find-doc "string") searches all doc strings. There is also (clo

Re: Docstrings in Clojure?

2010-08-19 Thread Joop Kiefte
(defn function-name "Your docstring goes here" [your argument list & more] (call some functions)) 2010/8/19 Paddy3118 : > Hi, Does clojure have docstrings: http://en.wikipedia.org/wiki/Docstring > and, if so, do you have a link to the feature in the Clojure > documentation? Thanks. > >

Docstrings in Clojure?

2010-08-19 Thread Paddy3118
Hi, Does clojure have docstrings: http://en.wikipedia.org/wiki/Docstring and, if so, do you have a link to the feature in the Clojure documentation? Thanks. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g