[erlang-questions] erlang:raise/3 considered harmful?
Sun May 15 23:55:09 CEST 2016
> I'd typically use "catch" (I don't care for try...catch)
According to the last couple paragraphs in this message:
a bare catch will create a stacktrace when an exception of type 'error'
is caught, whereas a try ... catch will only create a stacktrace if you
call erlang:get_stacktrace(). I know that a while back parts of mnesia
were rewritten to move to try ... catch, presumably prevent the cost of
unneeded stacktrace creation.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the erlang-questions