Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

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...


You get a panic, which can be caught. http://play.golang.org/p/IaTAGizhrF




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: