3 ms·
Go has panics, which is essentially exceptions with a different name. Failure to handle all panics will lead to process termination, as with unhandled exception
by lostmyoldone 7y ago
Go has panics, which is essentially exceptions with a different name. Failure to handle all panics will lead to process termination, as with unhandled exceptions.
- zeugmasyllepsis 7y agoTo be fair, their general use is discouraged unless you want the process to terminate. Not that you can't do that in other languages, but the culture in Go seems to prefer returning error codes.