[erlang-questions] Failure semantics of dets:insert_new vs dets:insert

Hans Bolinder <>
Mon Jun 30 13:18:09 CEST 2014


[Alexei Sholik:]
> But the signature for insert_new is
>
>     insert_new(Name, Objects) -> boolean()
>
> In this case, false only indicates that a value for the key is already
> in the table. What about failure cases of insert()?

The type of the return value should include {error, Reason}. We'll
correct the docs in 17.3. Thanks for reporting.

Best regards,
Hans Bolinder, Erlang/OTP team, Ericsson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140630/1484259b/attachment.html>


More information about the erlang-questions mailing list