Shannon -jj Behrens firstname.lastname@example.org writes:
On 4/20/05, M.-A. Lemburg email@example.com wrote:
My use case for switch is that of a parser switching on tokens.
mxTextTools applications would greatly benefit from being able to branch on tokens quickly. Currently, there's only callbacks, dict-to-method branching or long if-elif-elif-...-elif-else.
I think "match" from Ocaml would be a much nicer addition to Python than "switch" from C.
Can you post a quick summary of how you think this would work?