[erlang-questions] Compiler to warn on used underscore-variables
Wed Jan 6 16:08:44 CET 2010
2010/1/6 Lövei László <>:
> Zoltan Lajos Kis wrote:
>> I understand that they are ordinary variables. But I am certain that all
>> the _Var variables I have seen so far were named so in order to indicate
>> that they are intentionally unused, and not because of some strange naming
> It is also useful in generated code, take a look at the output of yecc for
> an example.
For generated code, I think that it makes sense to switch off the
for unused variables.
I second the idea of introducing a new warning for the use of
with underscore. It is quite easy to make unintentional use of such variables.
More information about the erlang-questions