From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr 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 8A260BB81 for ; Sat, 12 Nov 2005 05:11:21 +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 jAC4BLMh010898 for ; Sat, 12 Nov 2005 05:11:21 +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 FAA07863 for ; Sat, 12 Nov 2005 05:11:20 +0100 (MET) Received: from ash25e.internode.on.net (ash25e.internode.on.net [203.16.214.182]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jAC4BIcw029244 for ; Sat, 12 Nov 2005 05:11:19 +0100 Received: from rosella (ppp7-104.lns1.syd7.internode.on.net [59.167.7.104]) by ash25e.internode.on.net (8.12.9/8.12.6) with ESMTP id jAC4B9gO013132; Sat, 12 Nov 2005 14:41:09 +1030 (CST) (envelope-from skaller@users.sourceforge.net) Subject: Re: [Caml-list] Typing of the sequence operator (;) From: skaller To: Lukasz Stafiniak Cc: caml users In-Reply-To: <4a708d20511111133q432e1e9co@mail.gmail.com> References: <4a708d20511111133q432e1e9co@mail.gmail.com> Content-Type: text/plain Date: Sat, 12 Nov 2005 15:11:08 +1100 Message-Id: <1131768669.10265.42.camel@rosella> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 43756B69.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 43756B66.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 lukasz:01 toplevel:01 compiler:01 interfacing:01 wrote:01 sourceforge:01 typing:01 external:02 labels:02 unit:03 bugs:03 let:03 fri:05 john:08 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Fri, 2005-11-11 at 20:33 +0100, Lukasz Stafiniak wrote: > Dear list, > > Why does the sequence operator (;) have type 'a -> 'b -> 'b and not > unit -> 'a -> 'a? There is (ignore) for doing "these things" > purposefully. The toplevel warning is very often mute. Together with > labels, this is a source of bugs. Yes, I actually think this should be made a hard error. In transition, a compiler flag to let it pass. The only place I can see where you might want to 'drop' a returned value is when interfacing the external world. -- John Skaller Felix, successor to C++: http://felix.sf.net