Op zo 12-10-2003, om 13:08 schreef Harri Haataja:
> On Sat, Oct 11, 2003 at 09:20:05PM +0200, Jeroen Asselman wrote:
> > One note though:
> > The document says people should use if (NULL == var).
> > This is something I personally don't like, and never used it in my own
> > functions (parq). Neither is it used everywhere in the code. So I
> > don't want to force everyone to use
> > if (NULL == var) instead of if (var == NULL). (So feel free to use the
> > last one). However, if you patch an allready existing file, make sure
> > keep the syntax of that file.
> 
> Well, it is there to help catch = vs ==, isn't it? Easy typo to make and
> one that can be caught fast in at least those spots.

Yes, it is. But I feel it makes the code actually more unreadable.
Probably a personal thing though.

And the null == var is not used at many places in the gtkg code.

-- 
Jeroen Asselman <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Dit berichtdeel is digitaal ondertekend

Reply via email to