|
|
|
|
|
by Zambyte
395 days ago
|
|
> It doesn't look to be too much of a temptation to use panics as regular errors in Rust though Maybe not, but it was enough for the author to dedicate at least one whole section of the article to reasoning about this. > like when you want to show an error box to the user, instead of silently crashing, or when you want to send the crash log for later analysis As I mentioned, panics can be handled but not recovered. You can use the panic handler to do these things just fine. Just not recover. |
|
What does this difference mean? If you can run arbitrary function in your panic handler, what prevents someone from continuing the program?