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!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Tests in a software release Date: Wed, 15 Nov 2017 17:47:30 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 15 Nov 2017 16:47:31 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="8ecbd6fbb60e0255126bd713d1a2a898"; logging-data="14426"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GRKDqusv67YyS7fUjp5uLXEsu2hsTLqs=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:8b4fKattv+grMYJwhOS4GaIsRpc= Xref: feeder.eternal-september.org comp.lang.ada:48908 Date: 2017-11-15T17:47:30+01:00 List-Id: On 11/15/2017 01:06 AM, Randy Brukardt wrote: > > I'd consider making an argument for a pragma to *require* an ELSE part for > all IF statements. I don't completely agree; I don't think there's a need for an else part for if C then return; end if; The idea that the programmer should show that the else processing has been considered and deliberately ommitted is good for most if statemwents, though. I follow the rule that an if with an elsif part must have an else part. When there's multiple branches it's important to show that you've considered them all. -- Jeff Carter "Who wears beige to a bank robbery?" Take the Money and Run 144