[erlang-questions] Package Support/Use
Bengt Kleberg
bengt.kleberg@REDACTED
Mon Nov 6 10:58:34 CET 2006
On 2006-11-06 10:20, Mats Cronqvist wrote:
> Bob Ippolito wrote:
>> It's clear that much of the standard library prefers to return tagged
>> tuples instead of using exceptions.
>
> true enough. i believe rectifying this was one of the motivations behind the
> rewrite of the standard libraries referred to earlier in this thread.
you are correct. from the ''CONVENTIONS'' file:
- A function should *not* return wrapped values like
{ok,Value}/{error,Reason} to indicate success or
failure. The assumed behaviour should be success,
and failures should be signalled by exceptions,
as described below.
bengt
--
EPO guidelines 1978: "If the contribution to the known art resides
solely in a computer program then the subject matter is not
patentable in whatever manner it may be presented in the claims."
More information about the erlang-questions
mailing list