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!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: preconditions rock Date: Mon, 25 May 2020 10:24:21 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <975a04e0-497c-4335-ab66-d7493f9ae119@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 25 May 2020 08:24:22 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="94b8aabf493f3651cec0faa1b17db5cb"; logging-data="29941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SJWS92ZlZQovLuAD3emU+DSVxzyeixWg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cancel-Lock: sha1:pVQS8JtyemarXDamffgg7Nui+yk= In-Reply-To: <975a04e0-497c-4335-ab66-d7493f9ae119@googlegroups.com> Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:58783 Date: 2020-05-25T10:24:21+02:00 List-Id: On 5/25/20 2:00 AM, Stephen Leake wrote: > I just have to say that I'm really appreciating how much preconditions help during development; I'm get way better error messages when tests fail, so it is very easy to fix the problems. Certainly, but preconditions are a way of thinking during design to create correct software. It's nice to have them directly supported in a language, but they're nothing new. I used preconditions in Ada 83 over 30 years ago. -- Jeff Carter "Beyond 100,000 lines of code you should probably be coding in Ada." P. J. Plauger 26