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 X-Received: by 10.68.137.99 with SMTP id qh3mr7861621pbb.2.1403782979617; Thu, 26 Jun 2014 04:42:59 -0700 (PDT) X-Received: by 10.182.143.4 with SMTP id sa4mr157obb.38.1403782979375; Thu, 26 Jun 2014 04:42:59 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!hn18no12844630igb.0!news-out.google.com!bp9ni2igb.0!nntp.google.com!hn18no12844627igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 26 Jun 2014 04:42:59 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=174.112.49.58; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 174.112.49.58 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Help understanding the benefits of Ada's exception model From: Patrick Injection-Date: Thu, 26 Jun 2014 11:42:59 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:187256 Date: 2014-06-26T04:42:59-07:00 List-Id: Hi Everyone I love Ada and I am so grateful for the help I have received on this list. = This post is slightly negative and I really hope I will not offend those th= at have been so good to me.... With Ada we can define exceptions and they have an explicit place in the bl= ock structure. It appears that this form is called unchecked exceptions. There is also checked exceptions, like in C: if (f =3D fopen("someFle")) { do something ... } Assuming that a valid test can be created, what is wrong with checked excep= tions ?=20 I love Ada but I have found that I don't need a large part of it as a singl= e developer writing single threaded code. =20 Tying my code to a built in exception model means I have to choose other la= nguages that have built in exceptions models like C++(yuck) if I want to po= rt and that doesn't mean that there models work the same way. Checked excep= tions look easy to port to virtually any language not just C. Please help me understand the benefits of Ada's model. Thanks for reading-Patrick