Hello. I'm interested in fixing this bug: http://dev.clojure.org/jira/browse/DJSON-21
data.json/read currently reads from the start of a java.io.Reader and as soon as it has a read and parsed a complete form it returns it. This is good and logical but it leads to input like "123abc" being parsed successfully as 123, which is confusing enough that the bug has been raised. Whitespace after a form like that would be fine, (ie (read-str " 123 ") => 123). So my questions: - Is it a sensible idea to consume the Reader until EOF checking that there's only whitespace remaining? - Can we just live with this bug as-is? - Is there a middle ground? (eg checking the next n bytes for non-whitespace then stopping) - Would it make sense if we treat 'read-str differently from 'read in this case? Thanks. Matthew -- 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.