Hacker News new | ask | show | jobs
by edflsafoiewq 641 days ago
That isn't possible. The assert may not even be produced in code you control.

The reason panics/exceptions exist is it is too onerous to handle every possible error condition at all callsites (allocation failure and broken pipes are the famous examples), and it is not possible to enumerate all possible error conditions (unintentional programmer errors for example).

People have religious ideas about handling panics for some reason.

1 comments

Panics shouldn't exist in modern Rust (if there is such a thing) at all.
I take it you mean panics should always abort?