git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	git@vger.kernel.org
Subject: Re: my git problem
Date: Tue, 29 Apr 2008 13:15:19 -0400	[thread overview]
Message-ID: <20080429171519.GA21310@fieldses.org> (raw)
In-Reply-To: <alpine.LFD.1.10.0804281222190.3119@woody.linux-foundation.org>

On Mon, Apr 28, 2008 at 12:28:38PM -0700, Linus Torvalds wrote:
> 
> 
> On Mon, 28 Apr 2008, Johannes Schindelin wrote:
> > 
> > On Mon, 28 Apr 2008, Andrew Morton wrote:
> > > 
> > > That's missing the "logical" bit :)
> > 
> > Heh, you're right.  I am too used to Git to think how other people would 
> > feel about these things... :-)
> 
> No, you are both wrong.
> 
> You're wrong because apparently you never did abstract algebra and set 
> theory in school.

Hmph.  I've got a PhD in algebra and still find that choice of operators
confusing.

(Which may just be further evidence that one can take a lot of classes
and still be an idiot.)

> If you know math, git actually does the rigth and very much the *logical* 
> thing.
> 
> So ".." is a simple difference, while "..." is a more complex difference. 
> 
> They mean different things for different operation types, but that is 
> again something a math person takes for granted (ie in algebra, a "+" or 
> "-" is just a random operation that follows certain rules: "a-b" means one 
> thing for the set of real numbers, and something *totally* different if 
> you are talking about set algebra).

I suspect one reason the set-difference operator is more commonly
written with a backslash than a minus sign is that set difference is
different enough from anything else usually called subtraction that most
people find it confusing to use the same notation.

I can sorta buy the argument that "A...B" means most generally "some
kind of difference between the three sets A, A^B, and B", and that in
the context of "git diff" it's most sensible to take ordering into
account and produce some approximation of a diff between A^B and B.  I'd
personally have found an entirely separate operator simpler to
understand.  But perhaps there's only so many keys on the keyboard.

--b.

  reply	other threads:[~2008-04-29 17:16 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-27 18:29 my git problem Andrew Morton
2008-04-27 19:15 ` Linus Torvalds
2008-04-27 19:44   ` Andrew Morton
2008-04-27 20:24     ` Linus Torvalds
2008-04-28 18:45       ` Andrew Morton
2008-04-28 18:49         ` Johannes Schindelin
2008-04-28 19:09           ` Andrew Morton
2008-04-28 19:13             ` Johannes Schindelin
2008-04-28 19:28               ` Linus Torvalds
2008-04-29 17:15                 ` J. Bruce Fields [this message]
2008-04-30  8:17                   ` Jakub Narebski
2008-04-28 19:33               ` Andrew Morton
2008-04-28 19:21         ` Linus Torvalds
2008-04-28 19:54           ` Andrew Morton
2008-05-01  6:01           ` Carl Worth
2008-04-28 19:52         ` Daniel Barkalow
2008-04-28 21:35       ` Andrew Morton
2008-04-28 21:47         ` Linus Torvalds
2008-04-28 22:04           ` Johannes Schindelin
2008-04-28 22:14           ` Linus Torvalds
2008-04-29  2:14             ` Andrew Morton

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=20080429171519.GA21310@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=akpm@linux-foundation.org \
    --cc=git@vger.kernel.org \
    --cc=torvalds@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).