Hello,
I want to use line-seq, and have it close the input reader.
My first attempt was
(with-open [stream (BufferedReader.)]
(line-seq stream))
Which crashes immediately because you can't read lines from a closed
seq.  So, the only way to explicitly close the reader associated with
line-seq is to keep another ref to it.

Is it a good idea for line-seq to close its BufferedReader when there
is no more data?  Or at least provide an optional parameter that
allows/disallows close?

Cheers,
Brad
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to