[Python-3000] Switch and static, redux
Andrew Clover
and-dev at doxdesk.com
Wed Jul 5 16:10:22 CEST 2006
Guido van Rossum <guido at python.org> wrote:
> (I'm not super confident about the syntax alternatives yet.)
The switch:-without-indent business still naggingly makes me feel
uncomfortable.
Is this a valid no-case-switch?
switch cake:
print 'hello'
Here's another syntax off the top of my head - put the first case in the
switch statement?
switch biscuit.type if 'digestive':
...
elif in 'jammy_dodger', 'garibaldi':
...
else:
...
--
And Clover
mailto:and at doxdesk.com
http://www.doxdesk.com/
More information about the Python-3000
mailing list