由:pbwolf发表的评论
原始问题从前端的{{toString}}开始。一个更直观的问题是,这个问题证明{{pr}}无法可靠地生成EDN。
中间存在的{{print-str}}(调用者可能与此无关)的有无引起重大差异
`
user> (clojure.edn/read-string
(first
(clojure.edn/read-string
(let [mk-str (fn [] (lazy-seq [(str ["ZiZi"])]))
a (mk-str)]
;(print-str a)
(pr-str a)))))
["ZiZi"]
user> (clojure.edn/read-string
(first
(clojure.edn/read-string
(let [mk-str (fn [] (lazy-seq [(str ["ZiZi"])]))
a (mk-str)]
(print-str a)
(pr-str a)))))
[ZiZi]
`