Feedback for first Rust Program
Feedback for first Rust Program
.unwrap() on everything instead of ?.
To Panic or not to Panic Thank you for your pointer. I just remember this from the docs. So basically, the general rule is only to use panic when something bad really happened, and my program cannot continue right? otherwise always return the error?
Really panics should only be used when the situation should never occur and if it does that indicates a bug in the program
I’ll rethink the use of panic in my code
would this section suffice? doc.rust-lang.org/…/ch09-00-error-handling.html