merits of Lisp vs Python
Neil Cerutti
horpner at yahoo.com
Fri Dec 15 14:38:57 EST 2006
On 2006-12-15, André Thieme
<address.good.until.2006.dec.22 at justmail.de> wrote:
> In Lisp it is like an IF and represents exactly what we think.
> IF in Lisp:
> (if expr
> (then-part)
> (else-part))
>
> nif in Lisp:
> (nif expr
> (positive-part)
> (zero-part)
> (negative-part))
>
> It looks as if it were a construct directly built into Lisp. If
> one wants one could even add some additional syntax, so that it
> looks like:
> (nif expr
> positive:
> (foo1)
> (foo2)
> zero:
> (foo3)
> negative:
> (foo4))
>
> If you regard that idea nonsense then I suggest you to not use
> Rubys if-statement anymore. But instead program your own
> version "RubyIF" so that in future you have to pass all code
> inside blocks to your RubyIF function. If you *really* think
> that the Lisp savings are not worth it, then you would begin
> with my suggestion today.
I don't know how to build a house. It doesn't make me want to
live in a cave. ;-)
--
Neil Cerutti
The third verse of Blessed Assurance will be sung without musical
accomplishment. --Church Bulletin Blooper
More information about the Python-list
mailing list