Go Programming talk [OT]

Leandro Lucarella llucax at gmail.com
Wed Jun 9 07:37:15 PDT 2010


Pelle, el  9 de junio a las 13:28 me escribiste:
> >Yes, I agree that "safety" is the best argument in favour of exceptions
> >(as explicitness is the best argument in favour of no-exceptions). The
> >Python Zen put it this way:
> >
> >Errors should never pass silently.
> >Unless explicitly silenced.
> >
> >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. :)

I'm talking precisely about the case when you have to catch. In that
case I think the resulting code is uglier and more convoluted than the
code to manage errors by returning error codes or similar.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Si por el chancho fuera, se autocomería con chimichurri Worshestershire!


More information about the Digitalmars-d mailing list