[erlang-questions] erlang:raise/3 considered harmful?

Kenneth Lakin kennethlakin@REDACTED
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:

http://erlang.org/pipermail/erlang-questions/2013-November/075928.html

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...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160515/4e1a4a3c/attachment.bin>


More information about the erlang-questions mailing list