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

No, we can just see the "if err != nil". It's still there in Java or Ruby or Python, lurking in the notional space between the lines and waiting to branch to an exception handler you installed in the caller's caller's caller.


Same in Go, because of panic and recover. For example, "foo.Bar", if foo is a nil pointer, can invisibly branch to an exception handler you installed in the caller's caller's caller.


Can but idiomatically, usually does not. In most code, that would behave like a segfault with a more helpful crash log.




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

Search: