Re:SICP Goodness – Why you don't need looping constructs
by steinuil on Friday June 29, 2018 @08:45AM
(#17424159)
Tail calls do not just deal with recursive functions, in general TCO works on any function call in tail position. Maybe a more general recur construct (maybe called "jump") would be a good idea, but then you'd have to remember to use it.
[ Parent
| on HN ]
Re:SICP Goodness – Why you don't need looping constructs
by shakna on Friday June 29, 2018 @10:17AM
(#17424635)
Clojure is limited by the JVM, hence the need for recur. However, between it and trampoline you get most of the way to what TCO offers, albeit with the need for the programmer to be explicit.