Stuart Sierra <the.stuart.sie...@gmail.com> writes: > I could change "duck-streams/reader" to return a PushbackReader > instead of a BufferedReader. Unfortunately, "readLine" is defined in > BufferedReader but NOT in PushbackReader. We need "readLine" for > "clojure.core/line-seq". So we can't have it both ways. Blame Java's > over-engineered I/O.
I'm no Java IO expert, but it sounds like a BufferedReader is the right thing in the majority of cases. I think having "read" wrap its stream in a PushbackReader where necessary is a much better, non-intrusive solution, and my implementation seems to work fine. -Phil --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---