Thanks. Clojure.data.xml is supposed to be lazy but there's an example in the documentation <https://github.com/clojure/data.xml> that uses with-open:
(with-open [input (java.io.FileInputStream. "/tmp/foo.xml")] (parse input)) And I think I even remember that this used to work before. Also, a more generic question while were at it - what is the idiomatic way of implementing closeable sequences? I've found this old discussion <https://groups.google.com/forum/#!topic/clojure/2JDLF9E934o> and it's still on the todo. Were there any changes since 2009? -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.