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-November/018610.html below:

[Python-Dev] switch-based programming in Python

[Python-Dev] switch-based programming in PythonThomas Wouters thomas@xs4all.net
Wed, 14 Nov 2001 18:48:40 +0100
On Wed, Nov 14, 2001 at 11:49:55AM -0500, Donald Beaudry wrote:
>         when EXPR:
>             in CONSTANT-TUPLE:

You guys need to quit calling it a CONSTANT-TUPLE. It isn't. Like the
multiple arguments to the "print" statements, it's just 'multiple values',
*not* a tuple. The difference is subtle, probably, but definately there ;)

Asside from that, I prefer 'switch', 'case' and 'else' all to be on the same
indentation level. That way it's visually most like 'if/elif/else', what it
also acts most like. I can live with having 'case' indented relative to
'switch', but 'else' should be part of 'switch', not 'case'. 

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!



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