[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: continue/repeat...until false dichotomy
- From: Mark Hamburg <mark@...>
- Date: Wed, 17 Feb 2010 07:58:39 -0800
If one must have continue, and I will admit to missing it fairly routinely in some code, then there are a couple of simple options with respect to the scope rule:
1. Disallow continue when the innermost loop is a repeat/until loop.
2. Disallow access to variables defined inside the loop in the condition portion of a repeat/until that also includes a continue statement.
Either of these could be expanded in the future to allow more complicated solutions like only disallowing variables that might not be defined or using the proposed assumed nil initialization proposed at the beginning of the thread.
Personally, if doing anything about this, I would start with the first option and see how many concerns that allays.
Mark
- References:
- continue/repeat...until false dichotomy, Kelley, Brian
- Re: continue/repeat...until false dichotomy, Florian Weimer
- Re: continue/repeat...until false dichotomy, Kelley, Brian
- Re: continue/repeat...until false dichotomy, Matthew Wild
- Re: continue/repeat...until false dichotomy, Kelley, Brian
- Re: continue/repeat...until false dichotomy, Matthew Wild
- Re: continue/repeat...until false dichotomy, David Given
- Re: continue/repeat...until false dichotomy, David Kastrup