| > How much is this style of name shadowing used in GHC? Do people think it
| > is desirable?
|
| Personally I like to use shadowing and I think -fwarn-name-shadowing is
| overkill, but there are cases where it can catch real bugs.  Take this as a
| vote against rather than a veto; I'll go with the majority.

Me too.  It is often useful, esp in a monadic context.  Indeed it can *save* 
errors by not allowing you to refer to an out-of-date binding.

So we want each GHC module to explicitly declare what warnings it should be 
free of.  We can either do that by
        -Wall -fno-warn-name-shadowing -fno-whatever
or
        -W -fwarn-whatever

Which do you think is best?  If we can decide, I'll write it up.

I agree about -Werror for validate.

Simon

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to