[Tutor] General Programming Question

Eugene Leitl Eugene.Leitl@lrz.uni-muenchen.de
Thu, 28 Jun 2001 13:02:50 +0200 (MET DST)


On Thu, 28 Jun 2001 alan.gauld@bt.com wrote:

> Recursion is all - other loop constructs are not mentioned.

Recursion doesn't necessarily have to be expensive, if not resulting in
excessive stack frame allocation (the evils of C strike here). Also, tail
recursion (the thing SICP usually does) is usually compiled into a simple
jump.

-- Eugen* Leitl <a href="http://www.lrz.de/~ui22204/">leitl</a>
______________________________________________________________
ICBMTO  : N48 10'07'' E011 33'53'' http://www.lrz.de/~ui22204
57F9CFD3: ED90 0433 EB74 E4A9 537F CFF5 86E7 629B 57F9 CFD3