This discussion is enlightening. Thank you all for your instructive comments. -h.
On Jan 27, 1:39 pm, Nick Zbinden <nick...@gmail.com> wrote: > Maybe this is intressting for > you:http://stackoverflow.com/questions/4304468/clojure-jvm-7-8-improvemen... > > It should answer your question and give some more information. > > On Jan 26, 4:04 pm, Harrison Maseko <lis...@gmail.com> wrote: > > > > > Hi all, > > I need some help in understanding some basic concept. The book > > Programming Clojure on pages 134 - 136 deals with tail recursion and > > self-recursion using recur. The tail recursive example blows the stack > > while the self-recursive function using recur presented on page 135 > > does not. On page 136 the book says that "the critical difference > > between tail-fibo (tail recursion) and recur-fibo (self-recursion > > using recur) is on line 7, where recur replaces the call to fib." Why > > does recur make such a difference in the way the function consumes > > resources? What really is the difference between a tail-recursive > > function and a recursive function using recur? > > Thanks for your help. > > -h.- Hide quoted text - > > - Show quoted text - -- 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