From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA29681; Thu, 20 Nov 2003 10:42:33 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA30402 for ; Thu, 20 Nov 2003 10:42:31 +0100 (MET) Received: from rabelais.socialtools.net (rabelais.socialtools.net [81.2.94.243]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAK9gV115062 for ; Thu, 20 Nov 2003 10:42:31 +0100 (MET) Received: by rabelais.socialtools.net (Postfix, from userid 108) id 8E0F523327; Thu, 20 Nov 2003 09:42:30 +0000 (GMT) Received: from socialtools.net (chaucer.socialtools.net [81.2.94.242]) by rabelais.socialtools.net (Postfix) with ESMTP id 09EBA232DA; Thu, 20 Nov 2003 09:42:28 +0000 (GMT) Message-ID: <3FBC8C84.8010606@socialtools.net> Date: Thu, 20 Nov 2003 09:42:28 +0000 From: Benjamin Geer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-gb, en, fr, it MIME-Version: 1.0 To: Nicolas Cannasse Cc: Caml Mailing List , rich@annexia.org Subject: Re: [Caml-list] GC and file descriptors References: <20031119165408.GA16427@redhat.com> <6F407D14-1AB4-11D8-8941-00039310CAE8@inria.fr> <20031119214503.GA18822@redhat.com> <3FBBF847.5060801@socialtools.net> <008a01c3af01$2b0064a0$0274a8c0@PWARP> In-Reply-To: <008a01c3af01$2b0064a0$0274a8c0@PWARP> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on rabelais.socialtools.net X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.60 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 cannasse:01 developpers:01 ignoring:01 ignoring:01 nicolas:01 descriptors:01 penalty:02 catching:02 catching:02 exception:02 wrote:03 interface:03 exceptions:04 exceptions:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Nicolas Cannasse wrote: >>When a >>designer establishes a sensible policy regarding exceptions, checked >>exceptions make it possible to be reasonably confident that (nearly) all >>error conditions are handled in a sane manner. > > It can work in an opposite way. > I've seen developpers (professional) that couldn't break the specification > by adding an throws statement so they were simply catching .... and ignoring > the exceptions ! Note what I said above about the designer establishing 'a sensible policy'. In my team, catching and ignoring exceptions is punishable by the death penalty. :) If an interface doesn't allow you to handle an exception properly, it needs to be changed. Ben ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners