gnustep-dev
[Top][All Lists]
Advanced

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

Re: Re[2]: [RFA]: BOOL coding standards (Was: Problem with +numberWithBo


From: Helge Hess
Subject: Re: Re[2]: [RFA]: BOOL coding standards (Was: Problem with +numberWithBool: ?)
Date: Mon, 2 Feb 2004 02:23:02 +0100

On 30.01.2004, at 20:08, Manuel Guesdon wrote:
I think that
        if (MyPtr)
is more readable than
        if (MyPtr == NULL)
because it's shorter and still easily understandable buts it's only my opinion :-)

Wow, what an excellent example! :-) Manuel already did a mistake when trying to rewrite the expression, of course
  if (MyPtr)
would translate to
  if (MyPtr != NULL)
and NOT to
  if (MyPtr == NULL)

QED: that's nonsense and leads to unncessary errors. ;-) Every C developer knows what "if (ptr)" does.

Hm, well, actually I do prefer "if (ptr == NULL)" over "if (!ptr)". Not sure why.

Greets
  Helge
--
http://docs.opengroupware.org/Members/helge
OpenGroupware.org





reply via email to

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