Proposed PEP for a Conditional Expression
piet at cs.uu.nl
piet at cs.uu.nl
Thu Sep 13 04:17:50 EDT 2001
>>>>> Erik Max Francis <max at alcyone.com> (EMF) writes:
EMF> thp at cs.ucr.edu wrote:
>> C syntax does overload the already heavily used colon.
EMF> The colon isn't used all that much in C. It's used in labels and
EMF> switch...case statements, the conditional operator, and bitfields.
>> Perhaps it
>> would be better to use semicolon instead of colon.
EMF> The colon is too overloaded in C, but the semicolon isn't? At least one
EMF> semicolon appears in every C statement.
False! The semicolon is used to make a statement out of an expression.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list