[erlang-questions] Heads-up: The cost of get_stacktrace()

Anthony Ramine n.oxyde@REDACTED
Sun Nov 10 13:39:03 CET 2013


Could your system use erlang:raise(error, {foo,{Class,Term}}, erlang:get_stacktrace()) instead of returning things?

The call to erlang:get_stacktrace() could then be optimized away by the compiler and no informations would be lost ever.

-- 
Anthony Ramine

Le 5 nov. 2013 à 21:36, Richard Carlsson <carlsson.richard@REDACTED> a écrit :

> {foo_error, {Class, Term, erlang:get_stacktrace()}}




More information about the erlang-questions mailing list