public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Orlitzky <michael@orlitzky.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Portage 2.2
Date: Wed, 24 Jul 2013 11:26:36 -0400	[thread overview]
Message-ID: <51EFF22C.30006@orlitzky.com> (raw)
In-Reply-To: <51EFD62B.60107@gmail.com>

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.



  reply	other threads:[~2013-07-24 15:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24 10:00 [gentoo-user] Portage 2.2 Pavel Volkov
2013-07-24 10:05 ` Alan McKinnon
2013-07-24 10:13 ` Yohan Pereira
2013-07-24 10:52   ` Pavel Volkov
2013-07-24 10:53     ` Alan McKinnon
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         ` Michael Orlitzky [this message]
2013-07-24 20:06     ` Willie WY Wong
2013-07-24 20:15       ` gottlieb
2013-07-24 21:13         ` Alan McKinnon
2013-07-24 21:21           ` gottlieb
2013-07-24 21:24             ` Alan McKinnon
2013-07-24 12:06 ` [gentoo-user] " Nikos Chantziaras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51EFF22C.30006@orlitzky.com \
    --to=michael@orlitzky.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox