[Python-Dev] Re: ternary operators (fwd)

gvwilson@nevex.com gvwilson@nevex.com
Mon, 31 Jan 2000 23:15:58 -0500 (EST)


> > On Mon, 31 Jan 2000, Philip Wadler wrote:
> > > Tony Hoare had a nice ternary `if'.  He writes
> > > 	if c then d else e
> > > as
> > > 	d <c> e

> Ka-Ping Yee writes:
> Wait -- how the heck is this supposed to parse if 'c' is an
> arbitrary expression?

Replace '<' and '>' with the symbols of your choice --- embedding the
conditional in the middle is still an interesting idea...

> I think we've run out of bracket-like thingies.  (Yes, that
> would be the technical term).
> -- ?!ng

Well, if people are going to spell there names like *that*, it's no wonder
we've run out of bracket-like thingies... :-)

save-the-punctionally yours 
Greg