Changes for clojure.core/pr-str

GyrosOfWar on Sat, 08 Feb 2014
(defn write-object
  "Serializes an object to disk so it can be opened again later.
   Careful: It will overwrite an existing file at file-path."
  [obj file-path]
    (with-open [wr (writer file-path)]
      (.write wr (pr-str obj)))))
GyrosOfWar on Sat, 08 Feb 2014
(defn write-object
  "Serializes an object to disk so it can be opened again later.
   Careful: It will overwrite an existing file at file-path,
   if one exists."
  [obj file-path]
    (with-open [wr (writer file-path)]
      (.write wr (pr-str obj)))))
GyrosOfWar on Sat, 08 Feb 2014
(defn write-object
  "Serializes an object to disk so it can be opened again later.
   Careful: It will overwrite an existing file at path, if one
   exists."
  [obj file-path]
    (with-open [wr (writer file-path)]
      (.write wr (pr-str obj)))))
GyrosOfWar on Sat, 08 Feb 2014
(defn write-object
  "Serializes an object to disk so it can be opened again later.
   Careful: It will overwrite an existing file at path, if one
   exists."
  [obj file-path]
  (let [string-rep (pr-str obj)]
    (with-open [wr (writer file-path)]
      (.write wr string-rep))))