4 ms·
Just to be picky.... Clojure doesn't have TCO, it has 'recur' as a substitute instead.
by TickleSteve 12y ago
Just to be picky.... Clojure doesn't have TCO, it has 'recur' as a substitute instead.
- ch4s3 12y agoTo add a finer point, Clojure doesn't have TCO per se because the JVM doesn't have tco. Recur optimizes the special case of "tail-recursive self-call and not the generalized tail call."[0] That is to say when the tail of A calls A, but not when A calls B which calls A. [0] "The Joy of Clojure," Fogus and Houser