[Python-Dev] switch-based programming in Python

Barry Scott barry.alan.scott@ntlworld.com
Fri, 9 Nov 2001 23:37:49 -0000


switch with fall through is basically a goto in thin disguise.

		BArry

-----Original Message-----
From: M.-A. Lemburg [mailto:mal@lemburg.com]
Sent: 09 November 2001 08:13
To: barry.alan.scott@ntlworld.com
Cc: python-dev@python.org
Subject: Re: [Python-Dev] switch-based programming in Python


Barry Scott wrote:
> 
> The fall through is the source of too many defects in C/C++ code.
> And its rarely used in the wild according to report on this subject
> a few years ago.

Ok, let's drop the fallthrough (it's not good structured
programming practice anyway, even though it can help in C).
 
> Goto in python would be a terrible thing.

Sure would ;-) But where did you find a mention of "goto" ? 

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/