Re: Alternative approach to the git config NULL value checking patches..

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

 




On Sun, 10 Feb 2008, Junio C Hamano wrote:
> >
> > And this is different from checking against NULL exactly how?
> 
> Exactly.  My answer to your question is: "It is not different
> from checking against NULL at all."

Of course it is.

Not using NULL means that things like

	strcmp()
	atoi()
	..

all work and automatically get the right answer and don't need to care.

Take a look at the NULL-compare patches. 90% of them are just noise.

Yes, the 10% that actually *cares* will look exactly the same (the 
difference being comparing against NULL or config_true), but all the stuff 
that compares against a special string can just ignore the fact that the 
special truth value will never ever match that string.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux