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!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada 2012 Constraints (WRT an Ada IR) Date: Mon, 19 Dec 2016 16:57:30 -0600 Organization: JSA Research & Innovation Message-ID: References: <999c67b0-4478-4d2b-8108-32ac48fe6316@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: franka.jacob-sparre.dk 1482188250 22350 24.196.82.226 (19 Dec 2016 22:57:30 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 19 Dec 2016 22:57:30 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: news.eternal-september.org comp.lang.ada:32916 Date: 2016-12-19T16:57:30-06:00 List-Id: wrote in message news:alpine.DEB.2.20.1612171023380.1039@debian... ... >The else-clause still turns the Pre aspect into a postcondition. > >On the other hand, Randy's point is quite convincing: If we want to >introduce contracts -- and, specifically, preconditions -- into existing >libraries without breaking compatibility, then the else clause is exactly >what is needed. I know the point is convincing; we spent significant parts of ARG meetings in 2012 inventing the raise expression (and lots of other rejected solutions to this problem) specifically because I had convinced the rest of the ARG that this needed to be addressed. :-) I'd be surprised if it has lost its power in the intervening years. Randy.