From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 01783BB81 for ; Fri, 17 Dec 2004 10:03:39 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iBH93bTB026457 for ; Fri, 17 Dec 2004 10:03:38 +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 KAA19228 for ; Fri, 17 Dec 2004 10:03:37 +0100 (MET) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iBH93Z1D026443 for ; Fri, 17 Dec 2004 10:03:36 +0100 Received: from [192.168.1.200] (ppp196-155.lns1.syd2.internode.on.net [203.122.196.155]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id iBH93ORF062258; Fri, 17 Dec 2004 19:33:25 +1030 (CST) Subject: Re: [Caml-list] Dummy polymorphic constructors From: skaller Reply-To: skaller@users.sourceforge.net To: Jacques Garrigue Cc: alex@barettadeit.com, caml-list , luca@barettadeit.com, ernesto@barettadeit.com, dome@barettadeit.com, info@gerd-stolpmann.de In-Reply-To: <20041217.101039.122623912.garrigue@math.nagoya-u.ac.jp> References: <41C1E091.1040508@barettadeit.com> <20041217.101039.122623912.garrigue@math.nagoya-u.ac.jp> Content-Type: text/plain Message-Id: <1103274204.15260.92.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 17 Dec 2004 20:03:24 +1100 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 41C2A0EA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41C2A0E7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 constructors:01 sourceforge:01 wrote:01 -rectypes:01 glebe:01 061:98 polymorphic:01 nsw:01 syntactic:01 typing:01 clearer:01 jacques:01 snail:02 2037:02 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: On Fri, 2004-12-17 at 12:10, Jacques Garrigue wrote: > > type empty = [ ] > Maybe this should be a typing error rather than a syntactic one, to > make the intention clearer. > Empty sum types are not allowed, because, while they are not really > dangerous, they may delay type errors. How about: make it an error, unless -rectypes is specified. In that case allow it. (Seems sensible to allow three cases: (a) error (b) warning (c) no warning .. but I can't think of how to provide that ..) -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net