[Python-Dev] Switch statement (original) (raw)
Georg Brandl g.brandl at gmx.net
Thu Jun 22 21:20:59 CEST 2006
- Previous message: [Python-Dev] Switch statement
- Next message: [Python-Dev] Switch statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Fredrik Lundh wrote:
I'm not sure it should, actually -- the primary form is more flexible, and it better matches how things work: it's the expression that's special, not the variable.
and things like radian = degree * static (math.pi / 180) would be pretty nice, for those of us who likes our Python fast.
Nice approach, though I wonder if it's unambiguous enough without some parenthesizing.
Georg
- Previous message: [Python-Dev] Switch statement
- Next message: [Python-Dev] Switch statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]