From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 77F38BC69 for ; Sat, 24 Feb 2007 04:31:54 +0100 (CET) Received: from ipmail01.adl2.internode.on.net (ipmail01.adl2.internode.on.net [203.16.214.140]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1O3VqU5007148 for ; Sat, 24 Feb 2007 04:31:53 +0100 Received: from ppp41-119.lns2.syd6.internode.on.net (HELO rosella) ([59.167.41.119]) by ipmail01.adl2.internode.on.net with ESMTP; 24 Feb 2007 14:01:49 +1030 X-IronPort-AV: i="4.14,213,1170595800"; d="scan'208"; a="92731753:sNHT28058177" Subject: Re: [Caml-list] Re: warning on value shadowing From: skaller To: Sam Steingold Cc: Jacques Garrigue , caml-list@inria.fr In-Reply-To: <45DF53D7.4090007@gnu.org> References: <45DCAE89.1050904@gnu.org> <20070222.095436.125900161.garrigue@math.nagoya-u.ac.jp> <45DF53D7.4090007@gnu.org> Content-Type: text/plain Date: Sat, 24 Feb 2007 14:31:45 +1100 Message-Id: <1172287905.23720.90.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 45DFB1A8.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; overkill:01 refactor:01 foo:01 sourceforge:01 wrote:01 wrote:01 caml-list:01 garrigue:03 jacques:03 perhaps:04 fri:05 uses:06 rather:08 john:09 felix:09 On Fri, 2007-02-23 at 15:51 -0500, Sam Steingold wrote: > Jacques Garrigue wrote: > > The first one is clearly overkill: if nobody uses zot, then who cares? > > you are not using it NOW, but you might in the future, at which point > you will all of a sudden have to refactor your code to avoid the > warning. I would rather see the shadowing warning the moment I add "open > Foo" for the first time. Once perhaps. After that you'd be demanding a way to turn it off for that case. -- John Skaller Felix, successor to C++: http://felix.sf.net