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 RAA24644; Wed, 19 Nov 2003 17:54:11 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA24801 for ; Wed, 19 Nov 2003 17:54:10 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hAJGs9125017 for ; Wed, 19 Nov 2003 17:54:09 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AMVai-0004Jz-00 for ; Wed, 19 Nov 2003 16:54:08 +0000 Date: Wed, 19 Nov 2003 16:54:08 +0000 Cc: Caml Mailing List Subject: Re: [Caml-list] GC and file descriptors Message-ID: <20031119165408.GA16427@redhat.com> References: <1069168323.18363.83.camel@pelican> <3FBA4D97.9060309@dcs.qmul.ac.uk> <1069177584.18363.204.camel@pelican> <3FBAC862.7010603@dcs.qmul.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FBAC862.7010603@dcs.qmul.ac.uk> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 forall:01 mli:01 api:01 freshmeat:01 team's:01 ltd:98 descriptors:01 nov:01 wrote:03 library:03 exceptions:04 exceptions:04 prototype:04 investment:94 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Nov 19, 2003 at 01:33:22AM +0000, Martin Berger wrote: > forall A B E: (A -> B throws E) -> list[A] -> list[B] throws E. > > while i have not thought about this in detail, i dont think there's > a type theorectic problem with this. Yes, all well and good, but I *do not* want have to go and change all .mli files to support checked exceptions, and then go and change them all again when I decide to put a SQL database behind some persistence library deep in the code. This is the problem with checked exceptions in Java: the set of exceptions that can be thrown is an implementation detail which is exposed unnecessarily through the API. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment 'There is a joke about American engineers and French engineers. The American team brings a prototype to the French team. The French team's response is: "Well, it works fine in practice; but how will it hold up in theory?"' ------------------- 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