Is this PEP-able? fwhile

Jerry Peters jerry at example.invalid
Wed Jun 26 15:56:54 EDT 2013


Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On Mon, 24 Jun 2013 19:01:11 -0700 (PDT), rusi <rustompmody at gmail.com>
> declaimed the following:
> 
>>On Tuesday, June 25, 2013 3:08:57 AM UTC+5:30, Chris Angelico wrote:
>>> On Tue, Jun 25, 2013 at 5:52 AM,  <> wrote:
>>> 
>>> > (NOTE:  Many people are being taught to avoid 'break' and 'continue' at all
>>> > costs...
>>> 
>>> Why? Why on earth should break/continue be avoided?
>>
>>Because breaks and continues are just goto-in-disguise?
>>
>        Because GOTO is a wild-card, capable of redirecting to anywhere;
> whereas break can only go to the exit of the loop (and in languages with
> labeled loops, possibly the exit of an outermost loop -- cf: Ada), and
> continue can only go to the next iteration of the loop (hmmm, does any
> language have a continue that can go to the next iteration of an outer
> loop?)

Bash:
continue: continue [n]
    Resume for, while, or until loops.

        Resumes the next iteration of the enclosing FOR, WHILE or
	UNTIL loop.
	    If N is specified, resumes the Nth enclosing loop.

	Jerry



More information about the Python-list mailing list