Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
warning on value shadowing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-02-24 (03:31)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Re: warning on value shadowing
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 <skaller at users dot sf dot net>
Felix, successor to C++: