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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: stopping a loop iteration without exiting it Date: Mon, 8 Jan 2018 14:49:59 -0600 Organization: JSA Research & Innovation Message-ID: References: <7b8a1da2-c405-4cbc-9c0b-1fef804c9239@googlegroups.com> Injection-Date: Mon, 8 Jan 2018 20:50:00 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="17260"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:49815 Date: 2018-01-08T14:49:59-06:00 List-Id: "Matt Borchers" wrote in message news:7b8a1da2-c405-4cbc-9c0b-1fef804c9239@googlegroups.com... > I would like to also put my voice in for a 'next [when condition]' > statement. It is also > my opinion that in some cases it is more readable. I would avoid > 'continue' only > because it is a C term. The use of 'goto' in a loop to act like a next by > jumping to > the END of the loop seems more like a hack and I agree with the sentiment > that it > adds more confusion for the reader. A "next" statement would require making "next" a reserved word, which would be wildly incompatible, "Next" subprograms are very common (they exist in the containers and the iterator interface). A "continue" statement would be an incompatibility for some, but a "next" statement would be an incompatibility for almost everyone. As such, there is no chance of using that syntax. Randy.