Re: Unnecessary Boolean Warning
Re: Unnecessary Boolean Warning
- Subject: Re: Unnecessary Boolean Warning
- From: Lee Ann Rucker <email@hidden>
- Date: Sun, 31 Jul 2011 20:45:52 -0700 (PDT)
It also depends on the language. Smalltalk doesn't have precedence because it doesn't have operators - they're all methods and they all go left-to-right. Pascal had some weird rules too. Between them I got used to being overly cautious with my parens.
----- Original Message -----
From: "Marco S Hyman" <email@hidden>
To: "Gordon Apple" <email@hidden>
Cc: "Developer Mailing Lists" <email@hidden>
Sent: Sunday, July 31, 2011 4:09:11 PM
Subject: Re: Unnecessary Boolean Warning
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
_______________________________________________
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