Re: name for A..B ranges?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Junio C Hamano" <gitster@xxxxxxxxx>
"Philip Oakley" <philipoakley@xxxxxxx> writes:

Yup, I think "range" is the commonly used word in discussions here.
When inventing A...B as a new thing in addition to A..B, we called
the former "symmetric difference", and what is implied by that is
the latter is "asymmetric difference"; we do not say that unless we
are contrasting between the two, though.

I asked because the man page does indicae that it (A..B) is a special
sort of revison range and "there is a shorthand for it", but then
didn't have a way of naming it.

I do not see "is a special sort of revision range" improved in your
two patches, though.

Hi Junio

I'm not sure what's meant here. That patch was about ensuring that the relevant syntax notations had headings to make them more easily locatable, not to change the explanations.


Knowing that A..B is merely a short-hand for ^A B is important to
understand how revision ranges work (e.g. "A..B C" is not "union of
A..B and C"), so I think it is worth addressing if the existing
description appeared to you that it may confuse readers.

I felt the explanations, once found, were OK. It was the discovery step I was hoepfully addressing.

The symmetric difference is then brought in as a further similar
notation. There are a number of Stackoverflow questions about the
differences betwee 'two dots' and 'three dots' as well, so having a
word/phrase for it could help.

I was thinking that maybe "single-sided difference (two dots)" maybe
one choice that is relatively neutral (or even a "two-dot range"...).

When contrasting .. and ..., we have always used "asymmetric" vs
"symmetric".  I'd prefer to see usnot invent new phrase nobody has
used, which leads to unnecessary confusion and learning burden.

Rather than trying to find a complement to the previously invented "symmetric difference" name (for the section heading), I was wondering if an alternative would be to refer to it via [use the headings of] it's notation, i.e. "the 'two-dot' range notation" (or 'syntax' is that is preferred), and the "three-dot symmetric difference notation".

The existing explanatory text can stand as is, but they would now have a section for readers to find.

Or should I just drop this?

--
Philip

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]