[erlang-questions] When to return {ok, Value} or just the Value

Steve Davis steven.charles.davis@REDACTED
Sun Nov 13 01:35:58 CET 2011


Is there a rule-of-thumb guidance as to when it is the right "time" to
return {ok, Value} and when to return just the raw value.

Both are valid approaches according to the coding guidelines. The
libraries do both.

All and any comments/observations appreciated.

best,
/s



More information about the erlang-questions mailing list