On 06/09/2010 11:14 AM, Leandro Lucarella wrote:
Andrei Alexandrescu, el  9 de junio a las 09:52 me escribiste:
That's what I like the most about exceptions. I think try/catch is
really ugly though. There has to be something better.


Careful use of scope(exit) and simply avoiding catching exceptions works
well for me. Except when you have to catch, of course. :)

Same here. I think a good application only has few try/catch
statements, so the fact that try is a relatively heavy statement is
not very important.

I don't feel the same, but that's probably because I mostly write
programs that need to take good care of errors.

I'm not sure that few try/catch statements imply there's some sloppy approach to errors going on. Exception are all about centralized error handling, so too many try/catch statements indicates a failure to centralize error handling.

Andrei

Reply via email to