[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Please don't do this (code fragment)



On Mon, Jan 14, 2002 at 06:01:37PM +0100, Guus Sliepen wrote:
> On Mon, Jan 14, 2002 at 08:58:57AM -0800, elf@florence.buici.com wrote:
> 
> > > Why don't you "man fts_read" and implement the correct way of checking
> > > for errors?
> > 
> > I believe the author wrote the original loop because the fts_
> > functions could fail to operate as expected.
> 
> Well please check if the author's assumptions are valid, and if so,
> direct your attention to fixing fts_read(), everyone would benefit. The
> discussion of how to make that ugly loop look "nicer" is useless.

I think you are missing the point.  As far as the program is
concerned, there is no valid reason to use the protecting loop to
guarantee termination.  I, too, agree that there is no reason to make
the loop nicer since there is no reason to write it in the first
place.

> 
> -- 
> Met vriendelijke groet / with kind regards,
>   Guus Sliepen <guus@sliepen.warande.net>




Reply to: