On 9 July 2013 19:39, Ben Wolfson <wolf...@gmail.com> wrote: > One thing that would be neat, if feasible, would be to make it possible to > do tail call elimination in situations where you can't currently use "recur" > because there's already a target established---if you have something like > [...]
I agree, that's long been on my wish list, although what I had in mind was support for naming loop (with an optional symbolic name right after 'loop) and a separate recur-to form for recurring to such named loops (with recur always working for the innermost loop, whether named or not). I've implemented a proof of concept in ClojureScript, available here if you'd like to take it for a spin: https://github.com/michalmarczyk/clojurescript/tree/recur-to Actual commit: https://github.com/michalmarczyk/clojurescript/commit/feba0a078138da08d584a67e671415fc403fa093 I've posted about it to the dev group, linking to Ben's message above: https://groups.google.com/d/msg/clojure-dev/imtbY1uqpIc/8DWLw8Ymf4IJ Cheers, Michał -- -- 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.