[Proposal] Introduce __STACKTRACE__

51 views
Skip to first unread message

Michał Muskała

unread,
Dec 8, 2017, 2:55:33 PM12/8/17
to elixir-l...@googlegroups.com
Hello everybody,

I submit a new proposal for changing how one can obtain a stack trace when handling errors.

TL;DR Replace the use of System.get_stacktrace() with a pseudo-variable __STACKTRACE__ similar to __MODULE__ or __CALLER__ available only inside catch and rescue clauses of the try expression.


Michał.

Paul Schoenfelder

unread,
Dec 8, 2017, 4:02:01 PM12/8/17
to elixir-l...@googlegroups.com
Just want to chime in here on the ML and say I'm a fan, solid +1!

Paul

--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/baf9d26a-429d-42c5-8945-4ada593fb953%40Spark.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages