Re: Iteration in lisp
- From: Kent M Pitman <pitman@xxxxxxxxxxx>
- Date: 21 Apr 2008 23:34:34 -0400
"rigaha@xxxxxxxxx" <rigaha@xxxxxxxxx> writes:
If you want to iterate through a list, should you use a recursive
function or a loop?
In Common Lisp, always prefer a loop where practical unless you know
with relative certainty that the problem cannot grow very big. A
recursive function can run out of stack since CL does not guarantee
tail call elimination. Anyone who tells you otherwise is living in a
fantasy world or is telling you something implementation-dependent or
is confusing Lisp with Scheme.
.
- Follow-Ups:
- Re: Iteration in lisp
- From: Kaz Kylheku
- Re: Iteration in lisp
- From: John Thingstad
- Re: Iteration in lisp
- From: Bob Felts
- Re: Iteration in lisp
- References:
- Iteration in lisp
- From: rigaha@xxxxxxxxx
- Iteration in lisp
- Prev by Date: Re: The empty list and the end of a list
- Next by Date: Re: Iteration in lisp
- Previous by thread: Re: Iteration in lisp
- Next by thread: Re: Iteration in lisp
- Index(es):
Relevant Pages
|