[erlang-questions] leading underscores on variables versus _

Bjorn Gustavsson <>
Mon Feb 5 08:29:52 CET 2007


"Ulf Wiger \(TN/EAB\)" <> 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.

/Bjorn


-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB




More information about the erlang-questions mailing list