Why is Python popular, while Lisp and Scheme aren't?

Martti Halminen martti.halminen at kolumbus.fi
Sat Nov 9 14:47:34 EST 2002


Richard Dillingham wrote:

> >
> > (if (a)
> >     (if (b)
> >         (if (c)
> >             (asdf)
> >    (zzzz))
> >       (foo))
> >   (bar))
> >
> > Would be the normal way to write this.

By the way, your newsreader broke the indentation in your reply :-)

> 
> I know, but I personally find the way I wrote it to be easier to read.
> You'll also note that I didn't use the normal C coding standard in the C
> examples, and instead used the Java/C# standard (Which I prefer).
> 
> The normal C way to use {}s being:
> 
> if (a)
> {
>  asdf;
> }
> 
> etc.

One of the C styles: see
http://www.tuxedo.org/~esr/jargon/html/entry/indent-style.html

- And I seem to remember that Linus prefers a style which isn't strictly
none of those...

--



More information about the Python-list mailing list