On Sun, Dec 22, 2013 at 12:26 PM, Lee Spector <lspec...@hampshire.edu>wrote:
> The issue I was rasing is that, when traversing '(() 0) with zip/next, one > should first visit the root, then (), and then 0. But what actually happens > is that between then () and the 0 one lands on a non-existent nil node. So > one ends up visiting 4 nodes when there are only 3, and the extra one is a > nil. > > As I mentioned previously this leads to null pointer exceptions in my > application, and the only ways around it that I see are recoding everything > without zippers or some nasty special case hackery. > Point of order: I'm somewhat dubious of the contention that wrapping the output of the traversal in (filter identity ...) before passing it to whatever's throwing the NPEs quite qualifies as "nasty special case hackery". :) -- -- 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/groups/opt_out.