Stream: ideas

Topic: ✔ `crash` plus `dbg`


view this post on Zulip Brendan Hansknecht (Jan 02 2025 at 16:26):

General question: should crash call Inspect.toStr. That way you can crash some_context_variable and it will just print the value of some_context_variable

view this post on Zulip Richard Feldman (Jan 02 2025 at 16:27):

I think it's easy enough to put that inside the string if you want it

view this post on Zulip Richard Feldman (Jan 02 2025 at 16:27):

more explicit that way

view this post on Zulip Brendan Hansknecht (Jan 02 2025 at 16:27):

Maybe not that useful and should be left as crash (Inspect.to_str(some_context_variable)) or crash "Some context on the failure: ${Inspect.to_str(some_context_var)}"

view this post on Zulip Brendan Hansknecht (Jan 02 2025 at 16:27):

Sounds good

view this post on Zulip Notification Bot (Jan 02 2025 at 16:27):

Brendan Hansknecht has marked this topic as resolved.


Last updated: Jun 16 2026 at 16:19 UTC