warn_unused_vars (Was: Re: Noob - Getting Started Infinte Loop?)

Richard Carlsson richardc@REDACTED
Thu Aug 31 23:09:18 CEST 2006

Robert Virding wrote:
> Actually this is simple way to get rid of the annoying whining by the
> compiler, just prepend every variable with _ and it keeps quiet. :-)
> Seriously I would prefer the default to be to keep quiet.

Seriously, that would be a bad idea. It catches _way_ too many errors
(nasty, hard-to-find typo bugs) to be turned off by default.

Oh, not in _your_ code, of course. Goes without saying. ;-)


More information about the erlang-questions mailing list