| Their code is more complex in some ways (for example, it’s verbose). But in languages with exceptions, if you want to know how a function can fail, you have two options: - Hope the documentation is correct (it isn’t) - Read the body of the function and every function it calls Reasonable people can disagree on the right approach here, but I know which I prefer. |
real
compared to every exception-based language I’ve used, rust error handling is a dream. my one complaint is async, but tbh I don’t think exceptions would fare much better since things like the actor model just don’t really support error propagation in any meaningful way