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: border2.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!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: Thu, 05 Jun 2014 21:43:07 +0200 Organization: A noiseless patient Spider Message-ID: References: <5365d3f0-43cc-47ef-989c-d47992c84c9f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 5 Jun 2014 19:43:10 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="12788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fgBdRxfeNv3ILxT9vikRk" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: Cancel-Lock: sha1:0h2ezQMZFOSHqUsCuJvXcTyviQg= X-Enigmail-Version: 1.6 X-Original-Bytes: 2086 Xref: number.nntp.dca.giganews.com comp.lang.ada:186748 Date: 2014-06-05T21:43:07+02:00 List-Id: Le 05/06/2014 21:18, Jeffrey Carter a écrit : >> I know that not everybody likes this idea, but to me exceptions are a >> powerful programming structure, not limited to handling errors. > > As the name indicates, exceptions are for exceptional situations. > Finding a solution doesn't seem exceptional for a solver. > It IS an exceptional condition! An exceptional condition is a condition that makes it impossible or unnecessary to continue with the normal algorithm, and requires suddenly a different behaviour. Finding the solution is precisely that. (although it is not an error or an abnormal condition, which is precisely the point I made). -- 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