Just started learning Clojure a day ago with Stuart's book I found
that Clojure doesn't do tail recursion optimization, not at least for
the most simplest form. Instead the call must be made to recur instead
of the function itself.

However in the more-or-less-the-same-camp Scala does such optimization
(not for the case with ta which Clojure's FAQ claims that "if JVM
doesn't we can't do anything". I don't know how exactly Scala does
this however using special form "recur" is very ugly and makes quite a
bit of functional programming very pointless (just look at the famous
'fib'.)

Or I am just plain wrong.
-- 
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

Reply via email to