Re: Unnecessary Boolean Warning
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