[Python-Dev] conditional expressions?
Greg Ewing
greg@cosc.canterbury.ac.nz
Tue, 16 Oct 2001 18:06:40 +1300 (NZDT)
Skip Montanaro <skip@pobox.com>:
> It seems downright weird to me that the syntactic baggage necessary to write
> a conditional expression is greater the the baggage necessary to write an if
> statement (new "then" keyword, parens required for disambiguation).
Has the "x if c else y" idea been totally rejected?
It doesn't require a new keyword, or parentheses to
disambiguate from an if statement.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg@cosc.canterbury.ac.nz +--------------------------------------+