3 ms·
And the error magically disappears when the function returns it?
by ozgrakkurt 11mo ago
And the error magically disappears when the function returns it?
- csomar 11mo agoIt doesn’t disappear, it forces you to handle it.
- VMG 11mo agoPropagating upwards a valid way of handling it and often the correct answer. There needs to be something at the top level that can handle a crashing process.
- ozgrakkurt 11mo agoYou mean like kubernetes that restarts your program when it crashes?
- hu3 11mo agocan Rust handle global panics? Or can a unwrap be stopped? This is just a normal Tuesday for languages with Exception and try/catch.
- frumplestlatz 11mo ago> This is just a normal Tuesday for languages with Exception and try/catch. Yes, unfortunately, random stack unrolls and weird state bugs as a result are a normal Tuesday for languages with (unchecked) Exception and try/catch