[kmf-discuss] kmf code review (part I.)
Jan Pechanec
Jan.Pechanec at Sun.COM
Tue Feb 12 09:08:36 PST 2008
On Tue, 12 Feb 2008, Wyllys Ingersoll wrote:
> I disagree with a lot of our cstyle rules. I don't understand why it should be
> a problem to use a
> negation operator with strlen, the result is obvious. The semantics of strlen
> (or strcmp either)
> are never going to change. The internet would probably collapse in a
> smoldering heap if it
> did :)
sure, and there is always a rule there I don't like. For me it's
easier to read because I read !x like "x not true" which doesn't make sense
with strlen() and others. I think that's the reason why it's like that in
the document because !=0 is "strlen not zero" which is something different.
anyway, not a big deal...
--
Jan Pechanec
More information about the kmf-discuss
mailing list