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

The point was about how the set of exceptions handled by `except:` might not match what the programmer expects, especially a programmer coming from a different language. It's not about knowing what kinds of exception the code in the `try` could raise and it isn't about telling a called function what to do.

Other languages, notably Java, have tried the "functions document what they can raise" idea. Everyone seems to hate the result.



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

Search: