Aw: Clojure 1.3: defs can now have docstrings; how so?

2011-09-06 Thread Meikel Brandmeyer (kotarak)
user= (def foo A foo :foo)
#'user/foo
user= (doc foo)
-
user/foo
  A foo
nil

Sincerely
Meikel

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

Re: Clojure 1.3: defs can now have docstrings; how so?

2011-09-06 Thread Ken Wesson
On Tue, Sep 6, 2011 at 9:13 AM, Meikel Brandmeyer (kotarak) m...@kotka.de 
wrote:
 user= (def foo A foo :foo)
 #'user/foo
 user= (doc foo)
 -
 user/foo
   A foo
 nil

Hrm. Doc on a var not bound to a function or macro doesn't print its
(default) value?

-- 
Protege: What is this seething mass of parentheses?!
Master: Your father's Lisp REPL. This is the language of a true
hacker. Not as clumsy or random as C++; a language for a more
civilized age.

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