public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] Portage 2.2
  @ 2013-07-24 15:26 99%         ` Michael Orlitzky
  0 siblings, 0 replies; 1+ results
From: Michael Orlitzky @ 2013-07-24 15:26 UTC (permalink / raw
  To: gentoo-user

On 07/24/2013 09:27 AM, Alan McKinnon wrote:
> 
> I think it's the former. But I've been known to be wrong on things
> (lately, more often than not...)
> 
> Just looked on The Google, and there's no consensus I can find. Best
> advice seems to be that union and difference are equal precedence so the
> expression is evaluated left to right.
> 
> Hence it's the former :-)

You can rewrite (A \\ B) as (A && !B), giving you one less case to worry
about.

But, some people (most notably, programming languages) assign a higher
priority to intersection (&&) than they do to union (||). Of course,
mathematically, they should probably have the same priority, so many
people do the left-to-right thing.

So in practice, you'd better use parentheses if you want anyone to know
WTF you're talking about.



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2013-07-24 10:00     [gentoo-user] Portage 2.2 Pavel Volkov
2013-07-24 10:17     ` Neil Bothwick
2013-07-24 10:46       ` Alan McKinnon
2013-07-24 13:20         ` Neil Bothwick
2013-07-24 13:27           ` Alan McKinnon
2013-07-24 15:26 99%         ` Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox