conditional expressions (RE: Loop-and-a-half (Re: Curious assignment behaviour))
Ian Parker
parker at gol.com
Mon Oct 15 19:34:02 EDT 2001
In article <7xu1x1z6u4.fsf at ruckus.brouhaha.com>, Paul Rubin <phr-
n2001d at nightsong.com> writes
>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.
Nope, it wasn't. And the reason I referred to Algol68 was a bad
typeface and worse eyesight resulting in a misreading of 60 as 68!
--
Ian Parker
More information about the Python-list
mailing list