4 ms·
I don't have a problem with the idea of panic, but the way it's used seems like a wart. In a language with a result type why there are there any cases where th
by finnthehuman 6y ago
I don't have a problem with the idea of panic, but the way it's used seems like a wart. In a language with a result type why there are there any cases where the system isn't too broken to return a result, but default to panicking anyway?
Thinking about it from the embedded side, my panic is going to tell the failsafe circuitry that the processor can't be trusted. That's too aggressive of an action for any case where we still believe that the processor can return control to a caller that could have a more-graceful error path.