[erlang-questions] leading underscores on variables versus _

Sean Hinde sean.hinde@REDACTED
Mon Feb 5 11:37:07 CET 2007


On 5 Feb 2007, at 07:29, Bjorn Gustavsson wrote:

> "Ulf Wiger \(TN/EAB\)" <ulf.wiger@REDACTED> writes:
>
>> I have on occasion used underscored variables
>> in the following way
>>
>> foo([{x, _, _, Thingy, _} = _Obj| T]) ->
>>    ?dbg("_Obj = ~p~n", [_Obj]),
>>    ...
>>
>
> I have also written code like that.

We have it as a stated policy to write code like this.

We also have a stated policy to have no compiler warnings. Ah well, 1  
out of 2 ain't bad :-)

Sean






More information about the erlang-questions mailing list