>
> On Wednesday 20 January 2010 11:40:38 am Daniel Dilts wrote:
> > The problem is that this requires the cleanup to be done in each if
> > block. Avoiding that is one of the main purposes of the
> > do{}while(false) block. Note that the DIR * has to be released if it
> > has been created successfully.
>
> Are we talking about readability or reducing the number of lines of code
> and
> minimizing bugs? Yes, all three are related, but there is always give and
> take.
Ideally I want all three. Readability is huge, otherwise it is very
difficult to maintain and avoid bugs. Reducing line count is the least
important to me. For me the biggest thing to improve all would be to have
some way (other than code folding) to be able to see the flow of the code
without (or with) the error handling.
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list