:: Re: [DNG] C exception handling
Top Pagina
Delete this message
Reply to this message
Auteur: Didier Kryn
Datum:  
Aan: dng
Onderwerp: Re: [DNG] C exception handling
Le 31/10/2024 à 04:28, nick@??? a écrit :
> I think the trick is to make the error handling code as minimal as
> possible so it does not disrupt the readability of the ordinary flow.
> Ideally it would be a one-liner such as a goto or a call to a function.


    I do it exactly like you: a conditional goto to some place near the
end of the function, where I deal with error cases.

    But I find even this conditional goto disrupt the readability. It
an be avoided completely with a proper exception handling.

--     Didier