[PATCH] Choose syntax
Pavel Tsekov
ptsekov at gmx.net
Tue Jul 12 11:32:58 UTC 2005
Hello,
On Tue, 12 Jul 2005, Leonard den Ottolander wrote:
> > ... as well as any suggestions to use gboolean when a variable is
> > clearly meant to be of a boolean type ...
>
> As I said, ignoring any suggestion to use NULL, TRUE or FALSE (for now).
> I'm quite comfortable with using 0, !0 and 0 instead :-p .
It is good to get used to what Roland suggests i.e. strcmp() == 0
instead of !strcmp(). If you have programmed in Java for example you'd be
forced to use this construct. Also C++ background could convince you that
this is the better way.
More information about the mc-devel
mailing list