Comment Comment by Zambyte > It doesn't look to be too much of a temptation to use panics as regular errors in Rust thoughMaybe 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 analysisAs I mentioned, panics can be handled but not recovered. You can use the panic handler to do these things just fine. Just not recover. parent Zambyte 1 year ago
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.