Re: "continue/next" for "loop"
From: see below (yaldnifb_at_blueyonder.co.uk)
Date: 11/03/03
- Next message: Chad R. Meiners: "Re: "continue/next" for "loop""
- Previous message: amado.alves: "RE: Problem With Self-Referential Access-to-Subprogram Type"
- In reply to: Robert I. Eachus: "Re: "continue/next" for "loop""
- Next in thread: Jeffrey Carter: "Re: "continue/next" for "loop""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 03 Nov 2003 18:21:29 GMT
On 3/11/03 16:49, in article GaOdnQutOP61GjuiRVn-hQ@comcast.com, "Robert I.
Eachus" <rieachus@comcast.net> wrote:
> But I think in the case of loops, there are clearly two specialized
> forms of goto that should be considered:
>
> goto exit; -- exit innermost enclosing loop.
> exit loop; -- alternative syntax. ;-)
>
> and
>
> goto end; -- skip to start of next loop iteration.
> goto loop;
> goto begin;
...
> For the second, I am not sure whether "goto loop" or "goto end" is
> better. In either case it really is a goto. Other possibilities
> include "goto for" and "goto while," but this construct will IMHO often
> be used in loops with no for or while clauses.
Does "goto loop" not imply jumping to a point *after* the for/while test, if
used in for/while loops? "goto end" clearly implies that the for/while test
is to be repeated.
> Back to the earlier discussion about "with and use," I think that "exit
> loop" and "goto loop," if added to the language would clearly enhance
> readability and maintainability.
Agreed, subject to the above.
--
Bill:Findlay chez Blue:Yonder dot:co:dot:uk (":" => "")
- Next message: Chad R. Meiners: "Re: "continue/next" for "loop""
- Previous message: amado.alves: "RE: Problem With Self-Referential Access-to-Subprogram Type"
- In reply to: Robert I. Eachus: "Re: "continue/next" for "loop""
- Next in thread: Jeffrey Carter: "Re: "continue/next" for "loop""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|