2 ms·
This is false. I use the pattern in the linked blog post everyday so that my code must deal with the errors I want to deal with and can ignore the rest.
by noelwelsh 11y ago
This is false. I use the pattern in the linked blog post everyday so that my code must deal with the errors I want to deal with and can ignore the rest.
- wvenable 11y agoCode littered with try! macros does the same thing as propagating exceptions but you have to be explicit at every call. You have put error handling code literally everywhere and then just achieve the same result that exceptions do automatically. I understand Rust's motivation for handling errors this way and it makes sense for the type of language it is. But in terms of computing science, it's a step back into the past. Just like manually managing memory.