On Tue, Dec 15, 2009 at 10:54 AM, Greg Harman <ghar...@gmail.com> wrote: >> doseq is a macro, not a function, and its expansion expands the loop right >> in place : > > Right. Why does it work (in the finally block) when wrapped up in a > function, but not when doseq is called directly?
The complexity comes from a recur that is lexically within the finally. By moving the doseq to a separate function, its expanded loop/recur is no longer syntactically inside the finally, so the extra complexity is avoided. --Chouser -- -- I funded Clojure 2010, did you? -- 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