Throw or return a tuple

Bengt Kleberg bengt.kleberg@REDACTED
Mon Aug 15 08:46:49 CEST 2005


On 2005-08-13 06:23, orbitz@REDACTED wrote:
> I find myself often confused about which to do, should I throw an 
> exception when an error happens in a function or always go with 
> returning {ok, Value} or {error, Whatever}.

there is a nice write-up on this subjecy included in the ''Erlang 
standard library packages''. i have included it below.


bengt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CONVENTIONS
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050815/47baa82f/attachment.ksh>


More information about the erlang-questions mailing list