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
More information about the Python-list mailing list
Sun Oct 14 23:19:55 EDT 2001
- Previous message (by thread): conditional expressions (RE: Loop-and-a-half (Re: Curious assignment behaviour))
- Next message (by thread): conditional expressions (RE: Loop-and-a-half (Re: Curious assignment behaviour))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"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?
- Previous message (by thread): conditional expressions (RE: Loop-and-a-half (Re: Curious assignment behaviour))
- Next message (by thread): conditional expressions (RE: Loop-and-a-half (Re: Curious assignment behaviour))
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list