5 ms·
Not at all. Recoverable errors -> Result/Option, i.e. have your types not lie and say "this function open_file() returns either Ok(file) or Err" Unrecoverable
by andrepd 3y ago
Not at all.
Recoverable errors -> Result/Option, i.e. have your types not lie and say "this function open_file() returns either Ok(file) or Err"
Unrecoverable errors -> panic, i.e. crash your program and present a stack trace for debugging