Re: Iteration in lisp
- From: wrf3@xxxxxxxxxxxxxxx (Bob Felts)
- Date: Mon, 21 Apr 2008 23:45:19 -0400
Kent M Pitman <pitman@xxxxxxxxxxx> wrote:
"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.
Any pointers to the rationale for this decision?
.
- Follow-Ups:
- Re: Iteration in lisp
- From: Kaz Kylheku
- Re: Iteration in lisp
- From: Rob Warnock
- Re: Iteration in lisp
- From: Kent M Pitman
- Re: Iteration in lisp
- From: Don Geddis
- Re: Iteration in lisp
- References:
- Iteration in lisp
- From: rigaha@xxxxxxxxx
- Re: Iteration in lisp
- From: Kent M Pitman
- Iteration in lisp
- Prev by Date: Re: Iteration in lisp
- Next by Date: comp.lang.lisp charter
- Previous by thread: Re: Iteration in lisp
- Next by thread: Re: Iteration in lisp
- Index(es):
Relevant Pages
|