From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.ada Subject: Re: when-clauses (was Re: Map iteration and modification) Date: Tue, 9 Jan 2024 05:56:34 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 9 Jan 2024 05:56:34 -0000 (UTC) Injection-Info: dont-email.me; posting-host="bc215059836e1a1aefafe98b9533fc3f"; logging-data="2016144"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NJmpmwCgtvFWFBJohmgy4" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:umMb4XWq6ExmzK/lKxQhWZoShAE= Xref: news.eternal-september.org comp.lang.ada:65973 List-Id: On Mon, 8 Jan 2024 22:46:59 -0600, Randy Brukardt wrote: > OTOH, we added "when condition" to loops (which I thought > was unnecessary, but I lost that) ... I can see that conditional exits are a very common case, and because Ada requires “end if” on if-statements, they wanted to shorten the common case, hence exit-when. Not sure if conditional raises are that common. If my Python experience is any guide, I don’t do that much.