Changes for clojure.contrib.def/defalias

Ben on Thu, 24 Mar 2011
user=> (use 'clojure.contrib.def)
nil
user=> (defn square "Squares the given number" [x] (* x x))
#'user/square
user=> (defalias sq square)
#'user/sq
user=> (doc sq) ;; same metadata as original var
-------------------------
user/sq
([x])
  Squares the given number
nil
user=> (square 2)
4
user=> (sq 2)
4
Ben on Thu, 24 Mar 2011
user=> (use 'clojure.contrib.def)
nil
user=> (defn square [x] (* x x))
#'user/square
user=> (defn square "Squares the given number" [x] (* x x))
#'user/square
user=> (defalias sq square)
#'user/sq
user=> (doc sq) ;; same metadata as original var
-------------------------
user/sq
([x])
  Squares the given number
nil
user=> (square 2)
4
user=> (sq 2)
4