Another stab at a "switch/case" construct (new proposal):

Bengt Richter bokr at oz.net
Fri Mar 29 23:46:45 EST 2002


On 29 Mar 2002 14:35:25 -0800, Ken.Peek at Engineer.com (Ken Peek) wrote:
[... summary of attributed quotes ...]
>[Bengt Richter]:
>"case:  Don't like it.  We already have means to do what a case does
>and do it more elegantly.  It would add a needless redundant portion
>to the language."
>
That wasn't I. This quotes me better ;-)

----
Kind of like it, but there would have to be some hot
performance advantage. IMO the aesthetics aren't that
much different from the above.[1]

I definitiely wouldn't like break and continue to mean new things!
---
         ^--[sic]
[1] (Referring to if/elif/else code using a condition-evaluating functor
holding the switch value).

Regards,
Bengt Richter



More information about the Python-list mailing list