Rust Errors Without Dependencies

21 points by vaguelytagged


BenjaminRi

Why are errors hard in Rust

Coming from the try catch paradigm the typical way I write critical API errors is to throw one and bubble it up in middlware.

Am I the only one who thinks Rust's lack of exceptions is a breath of fresh air, that error handling has been simplified due to Rust's design, and that this kind of "middleware" where you just "bubble it up" is exactly the bad design I want to avoid? What is a completely unrelated piece of code going to do with the error anyway, other than maybe logging it?