underscore prefixed variables (was: Re: Noob - Getting Started Infinte Loop?)
Thu Aug 31 18:40:36 CEST 2006
On 8/31/06, Fredrik Thulin <> wrote:
> On Thursday 31 August 2006 03:03, Håkan Stenholm wrote:
> > Note that _V is still a valid variablename, so the code below is
> > valid:
> > foo(_V) ->
> > _V * 2.
> > a call to foo(42) would yield 84 in this case.
When did that get added to the language? I looked in my copy of
"Concurrent Programming in Erlang, 2ed" and didn't find that. All I
found was that variables must start with an upper-case letter.
More information about the erlang-questions