From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 59B7CBC48 for ; Wed, 6 Apr 2005 21:20:44 +0200 (CEST) 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 j36JKh7M005740 for ; Wed, 6 Apr 2005 21:20:44 +0200 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 VAA15931 for ; Wed, 6 Apr 2005 21:20:43 +0200 (MET DST) Received: from saul.cis.upenn.edu (SAUL.CIS.upenn.edu [158.130.12.4]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j36JKgAP023936 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 6 Apr 2005 21:20:43 +0200 Received: from localhost (SAUL.CIS.upenn.edu [158.130.12.4]) by saul.cis.upenn.edu (8.12.10/8.12.9) with ESMTP id j36JKfCP008307; Wed, 6 Apr 2005 15:20:41 -0400 (EDT) Date: Wed, 06 Apr 2005 15:20:40 -0400 (EDT) Message-Id: <20050406.152040.95498514.eijiro_sumii@anet.ne.jp> To: caml-list@inria.fr Cc: sumii@saul.cis.upenn.edu Subject: Re: [Caml-list] ambitious proposal: polymorphic arithmetics From: Eijiro Sumii In-Reply-To: <20050406.190026.17170033.debian00@tiscali.be> References: <20050406.111505.68543084.eijiro_sumii@anet.ne.jp> <20050406.190026.17170033.debian00@tiscali.be> X-Mailer: Mew version 3.2 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4254368B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4254368A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 eijiro:01 sumii:01 eijiro:01 sumii:01 christophe:01 troestler:01 compile-time:01 exception:01 polymorphic:01 typing:01 debian:02 hoc:02 anet:02 problem:05 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: From: Christophe TROESTLER > But if 1 + 1.2 is going to throw an exception, this is far far worse > (simple typing mistakes will now "crash" the program!!!). It doesn't, just as "1 = 1.2" doesn't - they are both compile-time errors. > In summary (since the opened the Pandora box), it would be nice if a > solution would be found to this "problem" but, let's go for a general > and useful one, not an had-oc one. :) I agree my proposal is ad hoc - and a better solution would be better, if possible!:-) Eijiro