• 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: Marco S Hyman <email@hidden>
  • Date: Sun, 31 Jul 2011 16:09:11 -0700

On Jul 31, 2011, at 1:13 PM, Gordon Apple wrote:

> The following expression generates a warning message (“&&” within “||”) and
> says to include the “anded” expression in parens.  Anybody who understands
> basic boolean operator precedence knows this is unnecessary.  Bug report?

Anyone who's debugged lots of code knows that there are too many
programmers out there that do NOT have boolean operator precedence
memorized and sometimes get it wrong.  I'm one of them, but then I
have page 49 of the '78 version of my K&R bookmarked so I can check
when needed.  Not everyone bothers to check.

/\/\arc

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Unnecessary Boolean Warning
      • From: Thomas Davie <email@hidden>
    • Re: Unnecessary Boolean Warning
      • From: Lee Ann Rucker <email@hidden>
References: 
 >Unnecessary Boolean Warning (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Xcode keeps altering my project.pbxproj files
  • Next by Date: Re: Xcode keeps altering my project.pbxproj files
  • Previous by thread: Unnecessary Boolean Warning
  • Next by thread: Re: Unnecessary Boolean Warning
  • Index(es):
    • Date
    • Thread