4 ms·
What happens in Go if there is an exception (division by zero or whatnot)? Does it just exit, no stack trace? I am so used to exceptions that I don't even know
by Tichy 14y ago
What happens in Go if there is an exception (division by zero or whatnot)? Does it just exit, no stack trace? I am so used to exceptions that I don't even know how it used to work without them. I think getting a stack trace for debugging is really important...
- rogpeppe1 14y agoYou get a panic, which can be caught. http://play.golang.org/p/IaTAGizhrF http://play.golang.org/p/IaTAGizhrF