On 04/03/2014 09:02 AM, Lucas Malor wrote:

In reply to Ian Kelly:

Instead of disabling fallthrough by default, why not disable it all together?

I was tempted but there are cases in which it's useful. An example

switch day casein ("Monday", "Thursday", "Wednesday", "Tuesday", "Friday"):
     gotowork = True
     continue
casein ("Monday", "Thursday", "Wednesday", "Tuesday", "Friday"):
     daytype = "ferial"
casein ("Saturday", "Sunday")
     daytype = "festive"


Absolutely not. Currently, the 'continue' key word means "stop processing and go back to the beginning". You would have it mean "keep going forward". Thus 'continue' would mean both "go backwards" and "go forwards" and would lead to unnecessary confusion.

--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to