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: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: OT: A bit of Sudoku Date: Sat, 07 Jun 2014 08:03:23 +0200 Organization: A noiseless patient Spider Message-ID: References: <5365d3f0-43cc-47ef-989c-d47992c84c9f@googlegroups.com> <1l2x0kuk3kxqx$.1owim8xhlww7x.dlg@40tude.net> <60fda787-b248-4355-a386-6463c093925f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 7 Jun 2014 06:03:45 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="b531796cd2ad168713073e4f7ecb0ccb"; logging-data="12567"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uSK95jWECruZ1HxQNfuH0" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <60fda787-b248-4355-a386-6463c093925f@googlegroups.com> Cancel-Lock: sha1:HeQFCpxbaDvGs8AXtiOnGG9OaIg= X-Enigmail-Version: 1.6 X-Original-Bytes: 2292 Xref: number.nntp.dca.giganews.com comp.lang.ada:186781 Date: 2014-06-07T08:03:23+02:00 List-Id: Le 06/06/2014 17:47, Adam Beneschan a écrit : > What you're describing sounds more like the "normal" use case for > exceptions, as I understand it (i.e. for "exceptional" conditions); The whole thing boils down to the difference between "normal" and "exceptional". FWIW, here is how I explain it in my courses: A program is basically looping (if it were to do things just once, it would be faster by hand than writing a program). The loop is the general case, the "rule". Sometimes, you encounter a condition that cannot be handled by the normal "rule" and requires a different treatement: it is an "exception" to the rule. That's why it's called exception, and not trap, abnormality, failure... -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr