Hi, Consider this file. The * marks the not there \n.
Foo ; Bar* And slurp and the str call, you get a string which looks like this "(Foo\n;Bar)". And this gives an error because the closing ) is in the comment. Here you see the effect: user=> (with-open [w (writer "x")] (binding [*out* w] (print "Foo\n;Bar") (flush))) nil user=> (read-string (str "(" (slurp "x") ")")) RuntimeException EOF while reading clojure.lang.Util.runtimeException (Util.java:156) user=> (with-open [r (LineNumberingPushbackReader. (reader "x"))] (let [eof (Object.)] (->> #(read r false eof) repeatedly (take-while (complement #{eof})) doall))) (Foo) user=> Sincerely Meikel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en