From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,459feef56669b92d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-03 10:21:29 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.algonet.se!algonet!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!amsnews01.chello.com!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-text.cableinet.net.POSTED!53ab2750!not-for-mail User-Agent: Microsoft-Entourage/10.1.4.030702.0 Subject: Re: "continue/next" for "loop" From: "(see below)" Newsgroups: comp.lang.ada Message-ID: References: Mime-version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Date: Mon, 03 Nov 2003 18:21:29 GMT NNTP-Posting-Host: 82.41.184.118 X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news-text.cableinet.net 1067883689 82.41.184.118 (Mon, 03 Nov 2003 18:21:29 GMT) NNTP-Posting-Date: Mon, 03 Nov 2003 18:21:29 GMT Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: archiver1.google.com comp.lang.ada:2004 Date: 2003-11-03T18:21:29+00:00 List-Id: On 3/11/03 16:49, in article GaOdnQutOP61GjuiRVn-hQ@comcast.com, "Robert I. Eachus" 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 (":" => "")