Using the Python Interpreter as a Reference

Chris Angelico rosuav at gmail.com
Mon Nov 28 16:57:46 EST 2011


On Tue, Nov 29, 2011 at 8:29 AM, Travis Parks <jehugaleahsa at gmail.com> wrote:
> Languages that don't support
> exceptions as part of their signature lead to capturing generic
> Exception all throughout code. It is one of those features I wish .NET
> had. At the same time, with my limited experience with Java, it has
> been a massive annoyance.

In Java, it mainly feels like syntactic salt. There's still a class of
RuntimeExceptions that aren't listed in the signature, so you still
have to concern yourself with the possibility that unexpected
exceptions will propagate; and you're forced to decorate every method
with the list of what it might propagate up, other than that.

It's like const-decorating a series of functions in C++, only far less
consequential and requiring far more typing.

ChrisA



More information about the Python-list mailing list