diff options
author | Rich Hickey <richhickey@gmail.com> | 2009-01-14 23:16:41 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2009-01-14 23:16:41 +0000 |
commit | c82316f297c9e96041058856aa7573d59b7c357f (patch) | |
tree | c8aee52dd461ab807aa6cb87b8311435bfc091a8 | |
parent | 9bb07a5c13445cfcf4b6a4f23f1fb0b6315b7ce7 (diff) |
remove all #=()s from non-dup prints, patch from Chouser
-rw-r--r-- | src/clj/clojure/core_print.clj | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/clj/clojure/core_print.clj b/src/clj/clojure/core_print.clj index 4dc83cfc..7a79a903 100644 --- a/src/clj/clojure/core_print.clj +++ b/src/clj/clojure/core_print.clj @@ -142,11 +142,6 @@ (print-sequential "(" print-method " " ")" o w)) -(defmethod print-method java.util.Collection [o, #^Writer w] - (print-ctor o #(print-sequential "[" print-method " " "]" %1 %2) w)) - -(prefer-method print-method clojure.lang.IPersistentCollection java.util.Collection) - (defmethod print-dup java.util.Collection [o, #^Writer w] (print-ctor o #(print-sequential "[" print-dup " " "]" %1 %2) w)) @@ -201,11 +196,6 @@ (print-meta m w) (print-map m pr-on w)) -(defmethod print-method java.util.Map [m, #^Writer w] - (print-ctor m #(print-map (seq %1) print-method %2) w)) - -(prefer-method print-method clojure.lang.IPersistentMap java.util.Map) - (defmethod print-dup java.util.Map [m, #^Writer w] (print-ctor m #(print-map (seq %1) print-dup %2) w)) @@ -223,13 +213,6 @@ (print-meta s w) (print-sequential "#{" pr-on " " "}" (seq s) w)) -(defmethod print-method java.util.Set [s, #^Writer w] - (print-ctor s - #(print-sequential "#{" print-method " " "}" (seq %1) %2) - w)) - -;(prefer-method print-method clojure.lang.IPersistentSet java.util.Set) - (def #^{:tag String :doc "Returns name string for char or nil if none"} char-name-string @@ -318,4 +301,4 @@ (print-dup (.name n) w) (.write w ")")) -(def #^{:private true} print-initialized true)
\ No newline at end of file +(def #^{:private true} print-initialized true) |