Re:How recursion got into programming: a comedy of errors
by TickleSteve on Wednesday July 23, 2014 @08:10AM
(#8073884)
Just to be picky.... Clojure doesn't have TCO, it has 'recur' as a substitute instead.
[ Parent
| on HN ]
Re:How recursion got into programming: a comedy of errors
by ch4s3 on Wednesday July 23, 2014 @08:44AM
(#8074027)
To 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