[Python-Dev] School IIb?

Fredrik Lundh fredrik at pythonware.com
Wed Jun 28 10:38:27 CEST 2006


Phillip J. Eby wrote:
> Hear, hear! We already have if/elif, we don't need another way to spell
> it. The whole point of switch is that it asserts that exactly *one* case
> is supposed to match

that's not true for all programming languages that has a switch construct, though;
the common trait is that you're dispatching on a single value, not necessarily that
there cannot be potentially overlapping case conditions.
</F> 


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /