[Python-Dev] PEP 3103: A Switch/Case Statement (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Thu Jun 29 16:56:40 CEST 2006
- Previous message: [Python-Dev] PEP 3103: A Switch/Case Statement
- Next message: [Python-Dev] PEP 3103: A Switch/Case Statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Eric Sumner wrote:
what's a "label" ? In your example, RED, GREEN, and BLUE. colours provides a mapping from values to labels/cases, and the switch statement provides a mapping from labels/cases to code. Sorry about introducing a new term without saying anything about it.
yeah, but what are they? integers? strings? names without an associated value? how do you create new labels? where are they stored? who keeps track of them?
- Previous message: [Python-Dev] PEP 3103: A Switch/Case Statement
- Next message: [Python-Dev] PEP 3103: A Switch/Case Statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]