Changes for clojure.core/def

pjlegato on Sat, 13 Oct 2012
;; This is an example of setting a docstring during a def.
;; (Note that the clojure.repl namespace which contains the
;;  doc function is not loaded by default in Emacs' SLIME mode.)

user> (def ted-nugent "the nuge rocks" 123)
#'user/ted-nugent
user> (doc ted-nugent)
-------------------------
user/ted-nugent
  The nuge rocks
user> ted-nugent
123
pjlegato on Sat, 13 Oct 2012
;; This is an example of setting a docstring during a def.

user> (def ted-nugent "the nuge rocks" 123)
#'user/ted-nugent
user> (doc ted-nugent)
-------------------------
user/ted-nugent
  The nuge rocks
user> ted-nugent
123
puredanger on Tue, 22 Mar 2011
;; This is an example of setting a docstring during a def in 
;; Clojure 1.2.  In 1.3, def takes an optional docstring directly.

user> (def ^{:doc "The nuge rocks"} ted-nugent)
#'user/ted-nugent
user> (doc ted-nugent)
-------------------------
user/ted-nugent
nil
  The nuge rocks
puredanger on Tue, 22 Mar 2011
user> (comment "This is an example of setting a docstring during a def in Clojure 1.2.  In 1.3, def takes an optional docstring directly.")
nil
user> (def ^{:doc "The nuge rocks"} ted-nugent)
#'user/ted-nugent
user> (doc ted-nugent)
-------------------------
user/ted-nugent
nil
  The nuge rocks