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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
URL: <>

More information about the erlang-questions mailing list