4 ms·
Stack traces exist in go[1], I'm not sure why you consider exceptions to be the only way of getting a stack representation. Not to mention that traditional exc
by mariusor 5y ago
Stack traces exist in go[1], I'm not sure why you consider exceptions to be the only way of getting a stack representation.
Not to mention that traditional exception handling advice I've been handed down from the gray beards is to always handle exceptions as early as possible, which is exactly what go forces you to do with their approach.
[1] https://pkg.go.dev/runtime/debug#Stack https://pkg.go.dev/runtime/debug#Stack