• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unnecessary Boolean Warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unnecessary Boolean Warning


  • Subject: Re: Unnecessary Boolean Warning
  • From: Graham Cox <email@hidden>
  • Date: Mon, 01 Aug 2011 11:15:57 +1000

On 01/08/2011, at 6:13 AM, Gordon Apple wrote:

> Anybody who understands
> basic boolean operator precedence knows this is unnecessary.


True, but who does? I mean, sure, if everyone who ever sees your source has that fully committed to heart, you're golden. Otherwise, what's the harm of a few brackets to make it absolutely clear? It's not as if it makes any difference to the object code. Code for readability.

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Unnecessary Boolean Warning (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Debugging "CGImageCreate: invalid image provider: NULL"?
  • Next by Date: Re: Debugging "CGImageCreate: invalid image provider: NULL"?
  • Previous by thread: Re: Unnecessary Boolean Warning
  • Next by thread: Re: Unnecessary Boolean Warning
  • Index(es):
    • Date
    • Thread