[erlang-questions] Pmods, packages, Unicode source code and column numbers in compiler - what will happen in R16?

Robert Virding <>
Fri Oct 19 12:52:16 CEST 2012

----- Original Message -----
> From: "Vlad Dumitrescu" <>
> Sent: Thursday, 18 October, 2012 3:46:16 PM
> On Thu, Oct 18, 2012 at 3:39 PM, Patrik Nyblom <>
> wrote:
> > Suggestions for a good definition of a variable name in *any*
> > script will be
> > greatly appreciated!
> Is a symbol prefix an acceptable solution? Like '?' for macros and
> '#'
> for records. Now that we're talking unicode, there are plenty of
> symbols to choose from, but of course it would be better to have one
> that most people have on their keyboards :-)
> '_' would be perfect, if it didn't have special meaning to the
> compiler...

Variables starting with '_' are completely normal variables and can be used as such. It is the compiler which assumes a special use *for handling warnings* and only for this. You can quite happily begin all your variables with '_' and everything will work just fine. And it will keep the compiler quiet. The variable in the language which has special meaning is the variable _, just _ .


More information about the erlang-questions mailing list