comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: OT: A bit  of Sudoku
Date: Sat, 07 Jun 2014 08:03:23 +0200
Date: 2014-06-07T08:03:23+02:00	[thread overview]
Message-ID: <lmua01$c8n$1@dont-email.me> (raw)
In-Reply-To: <60fda787-b248-4355-a386-6463c093925f@googlegroups.com>

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


  parent reply	other threads:[~2014-06-07  6:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-05 17:49 OT: A bit of Sudoku Mike H
2014-06-05 18:30 ` Adam Beneschan
2014-06-05 19:00   ` J-P. Rosen
2014-06-05 19:18     ` Jeffrey Carter
2014-06-05 19:43       ` J-P. Rosen
2014-06-05 20:05     ` Mike H
2014-06-05 23:12     ` Robert A Duff
2014-06-05 23:39       ` Adam Beneschan
2014-06-06  7:51         ` Dmitry A. Kazakov
2014-06-06  9:21           ` Georg Bauhaus
2014-06-06 13:38             ` Dmitry A. Kazakov
2014-06-06 15:47           ` Adam Beneschan
2014-06-06 17:09             ` Dmitry A. Kazakov
2014-06-07  6:03             ` J-P. Rosen [this message]
2014-06-06 14:13         ` Brad Moore
2014-06-13  0:21     ` Shark8
2014-06-13  6:30       ` J-P. Rosen
2014-06-13 10:10       ` Mike H
2014-06-13 12:37         ` Dmitry A. Kazakov
2014-06-13 15:47         ` Shark8
2014-06-05 20:03   ` Mike H
2014-06-05 20:40     ` Adam Beneschan
2014-06-06  9:10       ` Stefan.Lucks
2014-06-06 10:59         ` Mike H
2014-06-06 16:06         ` Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox