Tail recursion to while iteration in 2 easy steps
Piet van Oostrum
piet at vanoostrum.org
Mon Oct 7 22:46:53 EDT 2013
Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:
> Far more useful would be a high-level description of Scheme's programming
> model. If names can be rebound on the fly, how does Scheme even tell
> whether something is a recursive call or not?
Maybe it doesn't have to tell. If you do tail call optimization there is no need to do tail recursion optimization.
--
Piet van Oostrum <piet at vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
More information about the Python-list
mailing list