[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

Re: Why don't people like lisp?

William James

7/30/2015 7:36:00 PM

Raffael Cavallaro wrote:

> How about loop for greater clarity than either do or Python?
>
> (loop
> for a = 1 then b
> and b = 1 then (+ a b)
> do (print a))
>
> Which neatly demonstrates the power of macros as well. If there's a

In CL (COBOL-Like), in order to print an endless sequence of fibonacci
numbers one has to use a macro whose source code is over 60 kilobytes
in size.

In Scheme, he can simply use recursion.

(let fib ((a 1) (b 1))
(print a)
(fib b (+ a b)))

Since CL (COBOL-Like) is not a Lispy language, it does not have
much support for recursion.

--
He has nothing but kind sentiments for those who would destroy his home and
family.... He is universally tolerant.... If he has any principles, he keeps
them well concealed.... He is, to the extent of his abilities, exactly like
the next citizen, who, he trusts, is trying to be exactly like him: a faceless,
characterless putty-man. --- Father Feeney; "Should Hate Be Outlawed?"