3 ms·
It isn't in practice. Only a minority of methods actually need it. It's certainly far, far better than having to add exactly the same check after every method
by jammycakes 3y ago
It isn't in practice. Only a minority of methods actually need it.
It's certainly far, far better than having to add exactly the same check after every method call. Which is only what you need to do if you're working in a situation where exceptions are not an option.
- catiopatio 3y ago“railway oriented programming” (aka nomadic effects) don’t require that. As a bonus, you can’t accidentally fail to catch an exception, and you can model much more complex error handling than just ”catch and raise.” For example, it’s trivial to implement error recovery, where you implicitly collect all errors that occurred and then can report them once at the end.