From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 4C9A7BC0A for ; Sun, 10 Dec 2006 19:04:31 +0100 (CET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kBAI4SB1027139 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 10 Dec 2006 19:04:31 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1GtT2I-0001QH-00 for ; Sun, 10 Dec 2006 18:04:26 +0000 Date: Sun, 10 Dec 2006 18:04:26 +0000 To: caml-list@inria.fr Subject: Re: [Caml-list] Today's inflamatory opinion: exceptions are bad Message-ID: <20061210180426.GA5347@furbychan.cocan.org> References: <875c7e070612091935q2388092dr51538ff444d0e3a6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <875c7e070612091935q2388092dr51538ff444d0e3a6@mail.gmail.com> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at discorde with ID 457C4C2C.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; o'caml:01 whereby:01 compiler:01 blog:98 blog:98 wrote:01 exception:01 caml-list:01 exceptions:01 exceptions:01 inferred:02 programming:03 languages:03 raise:03 nested:04 On Sat, Dec 09, 2006 at 10:35:56PM -0500, Chris King wrote: > One thing Java (sort of) gets right is keeping track of which > exceptions a function can throw, making it easy to ensure that some > deeply nested piece of code won't cause the entire application to die > from some obscure exception. I'd love to see a similar feature in > O'Caml, whereby the exceptions which a function can raise are part of > its type and are inferred and checked by the compiler. Oh please no! Checked exceptions are the dumbest and most frustrating feature of Java (and that's saying something - the Java language has far more frustrations than most programming languages). Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Internet Marketing and AdWords courses - http://merjis.com/courses - NEW! Merjis blog - http://blog.merjis.com - NEW!