[Top][All Lists]

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

Re: goto and macro usage

From: Noel Yap
Subject: Re: goto and macro usage
Date: Mon, 12 Jul 2004 07:45:02 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

Paul D. Smith wrote:

Personally, I don't agree with the attitude that gotos are always evil
and should never be used (certainly in C).  I find that, used in
specific ways, they make code much clearer by avoiding the useless noise
of deeply nested conditionals.

I completely agree with this sentiment.  Quality is gauged in how the tool is 
used, not in whether the tool is used.

As for the hash stuff, those files (hash.c and hash.h) are taken
basically verbatim from the id-utils GNU package, as a fast, portable
hashing library.  I suspect they are implemented as they are for speed,
and although I'm not sure I would have used a similar implementation
method myself, I'm not really interested in making local changes to
files pulled in from other packages, unless there are actual bugs that
need to be fixed.

Hmmm, is there a reason why the library, if it even exists, wasn't linked in 
rather than copying its code?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]