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

John Roth johnroth at ameritech.net
Sat Oct 13 00:07:55 EDT 2001


"Tim Peters" <tim at zope.com> wrote in message
news:mailman.1002927732.24673.python-list at python.org...
> [Michael Chermside, on a conditional expression]
> > ...

> If people sign off on taking "then" as a new keyword, I think the chances
> are good that we could get
>
>     x = if e1 then e2 else e3
>
> into 2.2b1.  That's the only obvious spelling, hence the only truly
Pythonic
> way to spell it.  Other languages spelling it that way range from Algol-60
> (Guido's first intense language affair) to Haskell.

I've got no problem with it. I don't think I've ever named a variable
'then' in my life. Even in assembler.

John Roth





More information about the Python-list mailing list