conditional expressions (RE: Loop-and-a-half (Re: Curious assignment behaviour))

Paul Rubin phr-n2001d at nightsong.com
Mon Oct 15 03:43:31 EDT 2001


Ian Parker <parker at gol.com> writes:
> >How did Algol 60 deal with this?   
> 
> to excess, and with a more complicated parser, I imagine:
> 
> 
> Because statements are expressions in Algo68, the 'if' clause returns a
> value, and can be used as both a statement and an expression, and either
> can be squeezed onto one line or spread across multiple lines.

Algol 60 wasn't anything like Algol 68 though.  Its parser had to have
been pretty simple.



More information about the Python-list mailing list