FW: Switch statements again
David K. Trudgett
dkt at registriesltd.com.au
Thu Jan 16 00:39:41 EST 2003
On Wednesday 2003-01-15 at 22:49:10 -0600, Skip Montanaro wrote:
>
> David> Python should get a case/switch statement, ...
>
> A fair amount of thought has been put into this topic. Have a look at PEP
> 275:
>
> http://www.python.org/peps/pep-0275.html
That's interesting. I didn't know about that. What's Guido's take on
it? (Since he seems to be the "Python Dictator".)
Personally, I would go with the syntax change. Or maybe we should all
switch to Lisp and write our own macros to do the job, eh??? :-)))
Speaking of which, if it weren't OT, I'd be asking how Lisp does a
switch statement...
>
> and see if you can help advance it. There's even a patch which implements
> some portion of the PEP.
Unfortunately, I don't have any experience in language design, so I'd
just be getting in the way. Besides, there's always the time excuse
that everyone uses... :-)
Thanks for the pointer.
David Trudgett
More information about the Python-list
mailing list