3 ms·
> To make things worse, How is a panic crashing a program a bad thing? Panics are not Exceptions. They usually are the result of something happening that shou
by usrbinbash 3y ago
> To make things worse,
How is a panic crashing a program a bad thing?
Panics are not Exceptions. They usually are the result of something happening that should crash the program.
- beltsazar 3y agoYes, "usually", but not always. That's why Go has a mechanism to handle a panic with the `recover` function. The issue is more on the inability of handling a panic in a "foreign" goroutine.