Hi Erlang Developers,<br><br>I'm actually trying to understand and compile the following module code, and i don't understand why the init/1 function takes an argument which it doesn't use at all, so when i try to compile the module it complains about the argument _Args because it's unused.<br>
<br>May someone help me understand the use of this argument?<br><br>
<div class="column"><pre>-module(ch_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link(ch_sup, []).
init(_Args) ->
{ok, {{one_for_one, 1, 60},
[{ch3, {ch3, start_link, []},
permanent, brutal_kill, worker, [ch3]}]}}.<br><br><br>Thanks for a lot for your help, i really appreciate it.<br></pre></div>
Kindest Regards<br>Lucky<br>