Changes for clojure.core/ns

remleduff on Fri, 05 Nov 2010
;; Create a namespace named demo.namespace.
(ns demo.namespace)

;; Clojure recommends namespaces be at least "two segments" (ie, they should have at least one '.') otherwise it will create a class in the "default package", which is discouraged.

;; If this declaration appears in a file named "demo/namespace.clj" present in your classpath, it is known as a "lib", "demo/namespace.clj" is the lib's "root resource". See http://clojure.org/libs

;; From a clean repl you can load the lib using
user=>(require 'demo.namespace) 
; or
user=>(use 'demo.namespace)
remleduff on Fri, 05 Nov 2010
;; Create a namespace named demo.namespace.
(ns demo.namespace)

;; Clojure recommends namespaces be at least "two segments" (ie, they should have at least one '.') otherwise it will create a class in the "default package", which is discouraged.

;; If this declaration appears in a file named "demo/namespace.clj" present in your classpath, it is known as a "lib", "demo/namespace.clj" is the lib's "root resource". 

;; From a clean repl you can load the lib using
user=>(require 'demo.namespace) 
; or
user=>(use 'demo.namespace)
remleduff on Fri, 05 Nov 2010
;; This example will create a namespace named demo.namespace.
(ns demo.namespace)

;; Clojure recommends namespaces be at least "two segments" (ie, they should have at least one '.') otherwise it will create a class in the "default package", which is discouraged.

;; If this declaration appears in a file named "demo/namespace.clj" present in your classpath, it is known as a "lib", "demo/namespace.clj" is the lib's "root resource". 

;; From a clean repl you can load the lib using
user=>(require 'demo.namespace) 
; or
user=>(use 'demo.namespace)
remleduff on Fri, 05 Nov 2010
;; This example will create an empty namespace named demo.namespace.
(ns demo.namespace)

;; Clojure recommends namespaces be at least "two segments" (ie, they should have at least one '.') otherwise it will create a class in the "default package", which is discouraged.

;; If this declaration appears in a file named "demo/namespace.clj" present in your classpath, it is known as a "lib", "demo/namespace.clj" is the lib's "root resource". 

;; From a clean repl you can load the lib using
user=>(require 'demo.namespace) 
; or
user=>(use 'demo.namespace)
remleduff on Fri, 05 Nov 2010
;; This example will create an empty namespace named demo.namespace.
(ns demo.namespace)

;; Clojure recommends namespaces be at least "two segments" (ie, they should have at least one '.') otherwise it will create a class in the "default package", which is discouraged.

;; This declaration should appears in a file named "demo/namespace.clj" which should be present in your classpath. 

;;Once defined, you can use this namespace using 
user=>(require 'demo.namespace) 
; or
user=>(use 'demo.namespace)