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

For others: note that that's only because Queue29 assigned 0 to a variable before using it as the denominator, so there's no way for Go to catch that at compile-time.

If you divide by a literal 0, this is a compile-time error, so there's no panic (and no need to recover()): http://play.golang.org/p/E0jSDAHwtg



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

Search: