4 ms·
Erlang packs returns into a return value, but gives you an interesting alternative for handling it: Ret, ok = Something(things), There's no need for an "if" h
by technion 11y ago
Erlang packs returns into a return value, but gives you an interesting alternative for handling it:
Ret, ok = Something(things),
There's no need for an "if" here, you've told it to handle a failure.