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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:b58c:: with SMTP id e134mr257646iof.29.1554220388986; Tue, 02 Apr 2019 08:53:08 -0700 (PDT) X-Received: by 2002:a9d:77d5:: with SMTP id w21mr8845739otl.227.1554220388833; Tue, 02 Apr 2019 08:53:08 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.166.215.MISMATCH!78no132043itl.0!news-out.google.com!r82ni147ita.0!nntp.google.com!78no132042itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 2 Apr 2019 08:53:08 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.35; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.35 References: <6e1977a5-701e-4b4f-a937-a1b89d9127f0@googlegroups.com> <6f9ea847-2903-48c8-9afc-930201f2765a@googlegroups.com> <87a7hgvxnx.fsf@nightsong.com> <4e240c66-dce8-417f-9147-a53973681e29@googlegroups.com> <28b6a472-6c3a-40a6-8a96-2e27a65ab2ef@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4b2b0543-1125-4a80-9a94-abca08e60b7d@googlegroups.com> Subject: Re: Intervention needed? From: Anh Vo Injection-Date: Tue, 02 Apr 2019 15:53:08 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:56047 Date: 2019-04-02T08:53:08-07:00 List-Id: On Tuesday, April 2, 2019 at 1:30:25 AM UTC-7, Dmitry A. Kazakov wrote: > On 2019-04-01 23:42, Randy Brukardt wrote: > > "Dmitry A. Kazakov" wrote in message > > news:q7tfi3$1483$1@gioia.aioe.org... > >> On 2019-04-01 17:13, Optikos wrote: > >> > > > For Janus/Ada, I'm working toward having (optional) warnings for the raise > > of any exception; that, combined with warnings-as-error mode can give the > > effect of preventing any exceptions other than ones explicitly expected. > > It's pretty much all that can be done within Ada as it stands. But that is > > not as good as an exception contract (especially as exceptions that you want > > to raise become a pain). > > Right, and unanticipated exceptions is a major contributor of bugs in > Ada. It is not so that exceptions cause bugs, rather bugs manifest > themselves as exceptions. If one could contract them most of the bugs > will not pass through the compiler. Then, all bugs will be caught after they manifest themselves as exceptions. This is a brilliant idea. As the result, debugger is needed much less in the future. Anh Vo