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-25 (00:23)
From: Sam Steingold <sds@g...>
Subject: Re: [Caml-list] Re: warning on value shadowing
> * skaller <fxnyyre@hfref.fbheprsbetr.arg> [2007-02-24 14:31:45 +1100]:
> 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.

of course, there must be a way to clearly specify that I expect
to shadow so that I will not be bothered zbout bar again.

Sam Steingold ( on Fedora Core release 6 (Zod)
nobody's life, liberty or property are safe while the legislature is in session