[erlang-questions] leading underscores on variables versus _

Matthias Lang matthias@REDACTED
Sat Feb 3 22:21:52 CET 2007


Dominic Williams writes:

 > Well, this one /is/ easy, as each module coded with the old
 > rule can be given a
 >
 > -compile(bind_leading_underscore).
 > 
 > ... attribute.

Say you get a module from a third party, say jungerl. It doesn't have
the above attribute. How do you decide whether you should add the
attribute or not?

In general, you have to understand the code to be able to decide. And
that can be arbitrarily difficult.

My cure is worse than the problem. I should never have suggested it.

Matthias



More information about the erlang-questions mailing list