[Python-Dev] Re: switch statement
abo at minkirri.apana.org.au
Tue Apr 26 02:01:05 CEST 2005
On Mon, 2005-04-25 at 18:20 -0400, Jim Jewett wrote:
> If speed for a limited number of cases is the only advantage,
> then I would say it belongs in (at most) the implementation,
> rather than the language spec.
Agreed. I don't find any switch syntaxes better than if/elif/else. Speed
benefits belong in implementation optimisations, not new bad syntax.
Donovan Baarda <abo at minkirri.apana.org.au>
More information about the Python-Dev