"Stephen C. Gilardi" <squee...@mac.com> writes: > Now I apply the patch and use the convenience it offers: > > user=> (def a (java.io.StringReader. "123[145]")) > #'user/a > user=> (read a) > 123 > user=> (read a) > 145 > > The "[" on the input stream was lost so the second object is read as a > number rather than a vector.
Yikes. I hadn't thought of that--I was only using read in cases where I wanted to get a single object from the reader. Taking things off the reader and then pushing them back on seems a little odd to me--isn't there a way to just "peek" at the next character without consuming from it? That's how I expected this to work. Otherwise it seems to be a bit of a Gordian Knot. -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 -~----------~----~----~----~------~----~------~--~---