5 ms·
That's a completely different concern, and it only makes sense on panics, not any time an Err result is created.
by masklinn 11y ago
That's a completely different concern, and it only makes sense on panics, not any time an Err result is created.
- seanmcdirmid 11y agoAnd how do you tell where an error originated without a panic being called? Is the programmer expected to just instrument the their code to put the panic in as soon as possible? Anyways, this is a well-known problem with monadic error handling, and one of the main reasons it doesn't get more widespread adoption.