Changes for clojure.core/ns

zkim on Sun, 26 Sep 2010
;; Let's create a namespace and then assign it as the current namespace
user=> (create-ns 'my-new-namespace)
#<Namespace my-new-namespace>

user=> (ns 'my-new-namespace)
java.lang.ClassCastException: clojure.lang.PersistentList cannot be cast to clojure.lang.Symbol (NO_SOURCE_FILE:26)
;; oops, this is not the way to do it; if create-ns needs a symbol, ns does not

user=> (ns my-new-namespace)
nil

my-new-namespace=>
;; it worked as the current namespace is our newly created one

belun on Sun, 19 Sep 2010
Let's create a namespace and then assign it as the current namespace
user=> (create-ns 'my-new-namespace)
#<Namespace my-new-namespace>

user=> (ns 'my-new-namespace)
java.lang.ClassCastException: clojure.lang.PersistentList cannot be cast to clojure.lang.Symbol (NO_SOURCE_FILE:26)
; ups, this is not the way to do it; if create-ns needs a symbol, ns does not

user=> (ns my-new-namespace)
nil
my-new-namespace=>
; it worked as the current namespace is our newly created one

belun on Sun, 19 Sep 2010
Let's create a namespace and then assign it as the current namespace

user=> (create-ns 'my-new-namespace)
#<Namespace my-new-namespace>

user=> (ns 'my-new-namespace)
java.lang.ClassCastException: clojure.lang.PersistentList cannot be cast to clojure.lang.Symbol (NO_SOURCE_FILE:26)
; ups, this is not the way to do it; if create-ns need a symbol, ns does not

user=> (ns my-new-namespace)
nil
my-new-namespace=>
; it worked as the current namespace is our newly created one