Permalink
Browse files

moved up to edge clojure, should now be compatible with

  • Loading branch information...
1 parent 4e3e089 commit 993527086b05918079a07cca4fde0c334bae2c73 @stuarthalloway committed Sep 16, 2008
Showing with 3 additions and 9 deletions.
  1. +1 −3 pcl/chap_03/chap_03.clj
  2. +1 −2 pcl/chap_06/chap_06.clj
  3. +0 −2 pcl/chap_07/chap_07.clj
  4. +1 −2 user.clj
View
@@ -1,9 +1,7 @@
; use namespaces
(clojure/in-ns 'pcl.chap_03)
(clojure/refer 'clojure)
-(clojure.contrib.lib/use '(clojure.contrib test-is))
-(clojure.contrib.lib/use '(clojure.contrib string))
-(clojure.contrib.lib/use '(clojure.contrib duck-streams))
+(use 'clojure.contrib.duck-streams)
; struct instead of plist
(defstruct cd :title :artist :rating :ripped)
View
@@ -1,7 +1,6 @@
(clojure/in-ns 'pcl.chap_06)
(clojure/refer 'clojure)
-(clojure.contrib.lib/use 'clojure.contrib.def)
-(clojure.contrib.lib/use 'clojure.contrib.string)
+(use 'clojure.contrib.def)
; closure demo ends up demoing ref/dosync and anon lambda
(def counter (let [count (ref 0)] #(dosync (alter count inc))))
View
@@ -1,6 +1,5 @@
(clojure/in-ns 'pcl.chap_07)
(clojure/refer 'clojure)
-(clojure.contrib.lib/use 'clojure.contrib.lib)
; demo unless instead of when, since when is built in already
(defmacro unless [condition & body]
@@ -27,7 +26,6 @@
(doseq x (take 5 (repeat 1)) (println x)))
; fewer parentheses than CL dotimes
-(use 'clojure.contrib.string)
(defn times-table []
(dotimes x 10
(dotimes y 20
View
@@ -1,4 +1,3 @@
(println "custom settings loaded...")
-(. clojure.lang.RT (loadResourceScript "clojure/contrib/lib/lib.clj"))
-(clojure.contrib.lib/use '(clojure.contrib lib test-is))
+

0 comments on commit 9935270

Please sign in to comment.