[Python-Dev] switch-based programming in Python

Eric S. Raymond esr@thyrsus.com
Thu, 8 Nov 2001 12:17:56 -0500


Skip Montanaro <montanaro@tttech.com>:
> One other post I saw in this thread used explicit breaks as is required in
> C.  I would get rid of that.  When the current case's code ends, control
> flow should just jump to the end of the switch.

I disagree. Such fallthrough is very useful when writing state machines,
which is a significant part of the utility of a case statement.
-- 
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

I don't like the idea that the police department seems bent on keeping
a pool of unarmed victims available for the predations of the criminal
class.
         -- David Mohler, 1989, on being denied a carry permit in NYC