In Objective C, is there a difference between if (object == nil) and if (nil == object)?
Posted
by Bill
on Stack Overflow
See other posts from Stack Overflow
or by Bill
Published on 2010-06-16T12:26:56Z
Indexed on
2010/06/16
12:32 UTC
Read the original article
Hit count: 131
objective-c
I would lean towards
if (object == nil)
but I've noticed in some tutorials the use of
if (nil == object)
Is this just a style thing, or is there some justified rationale for using either format?
© Stack Overflow or respective owner