[Haskell-cafe] coding standard question

Deniz Dogan deniz.a.m.dogan at gmail.com
Mon Jun 22 01:31:16 EDT 2009


2009/6/22 Vasili I. Galchin <vigalchin at gmail.com>:
> Hello,
>
>      I am working with some existing code. "where/let" functions use the
> same name for function parameters as the outer function and hence there is a
> "shadow" warning from the compiler. To me it doesn't see totally
> unreasonable to code like this .... the downside is the nasty ghc warnings.
> Is there a coding consensus on this issue?
>
> Vasili

I say you should change it. Any maintainer of code with shadowed
variables could easily be confused, no matter what the language is.

-- 
Deniz Dogan


More information about the Haskell-Cafe mailing list