Re: Recursion or interation...??
- From: newser.bbs@xxxxxxxxxxxxxxxxx
- Date: 18 Nov 2005 03:38:34 -0800
Robert Bralic WROTE:
> Hello,
>
> Doees anybody knows, what is better
> to use in LISP, recursion or interation...??
> (in situation when you can use both)
>
> Thanks in advance, Robert...!!!
It depends on your LISP implement. If your Lisp offers shallow stack
space for
recursion , very offen your job will burn out that stack space if you
code in recursion.
But recursion got its convenience , eg it's more expressive than the
iterative one.
For iteration , I am too stupid to remember those complicative
operators and their
syntax , eg do , dotimes , dolist ... I am so simple minded that I only
learned loop
plus conditions . And I am so foolished that I only learned "cond" for
conditioning.
I am very stupid but my codes still work. You can see :
http://groups.google.com.tw/group/comp.lang.lisp/msg/46338401c260b19c?dmode=source&hl=zh-TW
I hope you all enjoy that !!
.
- Follow-Ups:
- Re: Recursion or interation...??
- From: Andras Simon
- Re: Recursion or interation...??
- From: Pascal Costanza
- Re: Recursion or interation...??
- References:
- Recursion or interation...??
- From: Robert Bralic
- Recursion or interation...??
- Prev by Date: Re: Serial port access
- Next by Date: Re: mapcar irritation
- Previous by thread: Re: Recursion or interation...??
- Next by thread: Re: Recursion or interation...??
- Index(es):
Relevant Pages
|