3 ms·
Popping in my mind: - System.Diagnostics.Debug.Assert (on debug builds) - Envinroment.FailFast (this is precisely what panic! is usually used for) - void Blo
by xanathar 5y ago
Popping in my mind:
- System.Diagnostics.Debug.Assert (on debug builds)
- Envinroment.FailFast (this is precisely what panic! is usually used for)
- void BlowUp() { BlowUp(); }
But, in reality, any unexpected Exception: how would you properly handle an unexpected NRE or index out of bounds? Either swallowing the exception (bad) or aborting.