From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 54D43BB91 for ; Thu, 27 Jan 2005 20:04:28 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0RJ4RTd008747 for ; Thu, 27 Jan 2005 20:04:27 +0100 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 UAA04069 for ; Thu, 27 Jan 2005 20:04:25 +0100 (MET) Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j0RJ4Orq006454 for ; Thu, 27 Jan 2005 20:04:25 +0100 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CuEwK-0002a7-00 for ; Thu, 27 Jan 2005 20:04:24 +0100 Received: from host49-195.pool8255.interbusiness.it ([82.55.195.49]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jan 2005 20:04:24 +0100 Received: from vincenzo_yahoo_addressguard-gmane by host49-195.pool8255.interbusiness.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jan 2005 20:04:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Vincenzo Ciancia Subject: Re: '_a Date: Thu, 27 Jan 2005 15:13:40 +0100 Message-ID: References: <1448756C-6FF9-11D9-8411-0003939A19AA@fas.harvard.edu> <20050127.095119.88330421.garrigue@math.nagoya-u.ac.jp> <1106818474.6734.152.camel@pelican.wigram> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: host49-195.pool8255.interbusiness.it User-Agent: KNode/0.8.2 Sender: news X-Miltered: at nez-perce with ID 41F93B3B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41F93B38.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; wrote:01 ocaml:01 enforces:01 inference:01 ocamlexc:01 ocamlexc:01 attenzione:98 l'indirizzo:98 posta:98 nel:98 campo:98 exception:01 exception:01 typing:01 typing:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: skaller wrote: > An exception free implementation of List.hd would > always produce the correct typing: > > let hd x = function > | [] -> None > | h :: _ -> Some h > > In effect, Ocaml first pretends unsound typing is actually sound, > and then enforces this at run time by throwing an exception > where one would otherwise accuse the type system of unsoundness, > but claims the error is not a type error. What about the possibility to include possible exceptions into a function signature (a la java)? Does this have problems with type inference? Also, there is the ocamlexc tool: http://caml.inria.fr/ocamlexc/ocamlexc.htm what about it? V. -- Please note that I do not read the e-mail address used in the from field but I read vincenzo_ml at yahoo dot it Attenzione: non leggo l'indirizzo di posta usato nel campo from, ma leggo vincenzo_ml at yahoo dot it