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!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: stopping a loop iteration without exiting it Date: Fri, 05 Jan 2018 11:13:46 -0800 Organization: A noiseless patient Spider Message-ID: <87shbki0et.fsf@nightsong.com> References: <81971548-23c9-4927-a6a8-6f0f1dba896b@googlegroups.com> <867esx70lw.fsf@gaheris.avalon.lan> <86373k74qh.fsf@gaheris.avalon.lan> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="43031e06e08a0ffd45f238aed352156a"; logging-data="19131"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Psk12L+Bkz+5sEMp93eAY" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:8cXrjPBizRqylCet/MqoivvoVIE= sha1:Z/t2DvAJh58cfGvA/8pvRW5N/OY= Xref: reader02.eternal-september.org comp.lang.ada:49771 Date: 2018-01-05T11:13:46-08:00 List-Id: "Jeffrey R. Carter" writes: > I never said I've never seen a real-world situation in which such a > construct is used. I said I've never seen one where it was needed. > That is still true. If a construct is useful, then the existence of an ugly workaround for its absence doesn't make it non-useful. Of course it's not "needed"; as Mart van de Wege says, you could use GOTO for everything so none of it is needed. The question is whether it improves code readability, reliability, developer productivity, etc. Heck, there's an argument that in real-world projects, it *is* needed: developers choose languages like C++ or even Perl because Ada is such a pain in the neck by comparison. So if you insist on using Ada for your project, it simply doesn't get done. I didn't get interested in Ada myself until Ada 2012, which makes many things a lot easier.