A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-October/017962.html below:

[Python-Dev] conditional expressions?

[Python-Dev] conditional expressions? [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	   +--------------------------------------+



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4