PEP-308 a "simplicity-first" alternative

ruud de rooij * at spam.ruud.org
Tue Feb 11 19:03:44 EST 2003


holger krekel <pyth at devel.trillke.net> writes:

>         x and y else z

as long as people are proposing alternatives, what about:

  c then x else y

or with required parentheses:
  (c then x else y)

it has the advantage that it doesn't overload existing keywords (like
the "if" statement or the "and" operator), except for the "else"
keyword which seems to be heavily used in many places in the language
anyway.

to me personally,
  print "affected %d row%s" % (rows, (rows==1 then "s" else ""))
doesn't look too bad.

if this has already been proposed and discarded, my apologies.

        - ruud
-- 
ruud de rooij | *@spam.ruud.org




More information about the Python-list mailing list