On Wed, Nov 26, 2008 at 1:00 PM, dreish <[EMAIL PROTECTED]> wrote: > > My favorite thing about recur is that the compiler tells you > immediately if you accidentally put it somewhere other than in a tail > position. You don't have to wait for the stack to overflow in actual > use because your test case was too small. I would hope the keyword > sticks around even if TCO gets added to the JVM.
Hear, hear! +1 Can I only vote once? +10 :-) Hm, maybe a general compile-time assert would be in order, once we have real tail-call optimization, so that even in the mutual-recursion case you could get a nice error if you make a mistake like: (def foo [] (+ 10 (tail-call bar 1 2))) Although something less ugly might be nice. --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---