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

Paul Rubin phr-n2001d at nightsong.com
Sun Oct 14 23:19:55 EDT 2001


"Tim Peters" <tim.one at home.com> writes:
> > x = if e1 then (e2) else (e3)
> > and
> > x = (if e1 then (e2) else (e3))
> > should be equivalent and they preserve clarity.
> 
> The latter form would be accepted, but not the former (and the former cannot
> be accepted, which is a question of parser technology, not of taste).

How did Algol 60 deal with this?   



More information about the Python-list mailing list