pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: "two time periods with only an endpoint in common do not overlap" ???
Date: Fri, 15 Oct 2021 23:52:48 -0500
Message-ID: <f4d6745d-d16a-448b-5966-7e9f6e2e6682@gmail.com> (raw)
In-Reply-To: <CAKFQuwZX6f9kpE7uQRk-aU0x0Wu2FGCTy3fDmk0QvXOWd32HyQ@mail.gmail.com>
References: <820B633E-90C6-40F0-81A0-CAA074E5762F@yugabyte.com>
	<2ff5f521-34ab-8690-180a-864441e4f15b@aklaver.com>
	<0782c52d-2a80-b37f-0b9e-1a2a7cfb68c5@gmail.com>
	<98ea7ea3-38ac-d145-e668-803e5ea14de7@aklaver.com>
	<d496d507-8abd-7e11-8e82-0f2983641803@gmail.com>
	<CAJ2+uGWsa0kZH2zvfBADMo=qy9UJC4aMuHLgQyVHMZyGFx==QQ@mail.gmail.com>
	<6f61f1d3-c110-e6dd-d742-1bb45fb6e90e@gmail.com>
	<CAKFQuwZX6f9kpE7uQRk-aU0x0Wu2FGCTy3fDmk0QvXOWd32HyQ@mail.gmail.com>

On 10/15/21 11:35 PM, David G. Johnston wrote:
> On Friday, October 15, 2021, Ron <ronljohnsonjr@gmail.com 
> <mailto:ronljohnsonjr@gmail.com>> wrote:
>
>
>     The numeric ranges 0-10 and 10-19 overlap, just as the time ranges
>     00:01:00-00:00:02:00 overlaps 00:02:00-00:03:00.
>
>     *It's the programmer's responsibility* to say what s/he really means,
>     not for "the system" to make that choice.
>
>
> The system has canonical representation for discrete element range.  The 
> upper bound is exclusive, the lower bound is inclusive.  All the docs are 
> doing is stating the obvious consequence of that rule.
>
> The “numeric range 0-10” is under specified and thus, as written, one must 
> abide by the rule, implying [).  The programmer is free to fully specify 
> their range to have the upper bound inclusive, but canonicalization would 
> then just change it to be “0-11” with the [) implied.

Prima facie, if you were told "numbers in the range 0-10", would you really 
think, "ah, they *really* mean 0 through 9"?

-- 
Angular momentum makes the world go 'round.

view thread (24+ messages)  latest in thread

Message-ID: <f4d6745d-d16a-448b-5966-7e9f6e2e6682@gmail.com>
Permalink:  ../f4d6745d-d16a-448b-5966-7e9f6e2e6682@gmail.com/
Also on:    postgresql.org/message-id/f4d6745d-d16a-448b-5966-7e9f6e2e6682@gmail.com

 · 

reply

Reply instructions:

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

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: "two time periods with only an endpoint in common do not overlap" ???
  In-Reply-To: <f4d6745d-d16a-448b-5966-7e9f6e2e6682@gmail.com>
  References: <820B633E-90C6-40F0-81A0-CAA074E5762F@yugabyte.com> <2ff5f521-34ab-8690-180a-864441e4f15b@aklaver.com> <0782c52d-2a80-b37f-0b9e-1a2a7cfb68c5@gmail.com> <98ea7ea3-38ac-d145-e668-803e5ea14de7@aklaver.com> <d496d507-8abd-7e11-8e82-0f2983641803@gmail.com> <CAJ2+uGWsa0kZH2zvfBADMo=qy9UJC4aMuHLgQyVHMZyGFx==QQ@mail.gmail.com> <6f61f1d3-c110-e6dd-d742-1bb45fb6e90e@gmail.com> <CAKFQuwZX6f9kpE7uQRk-aU0x0Wu2FGCTy3fDmk0QvXOWd32HyQ@mail.gmail.com> <f4d6745d-d16a-448b-5966-7e9f6e2e6682@gmail.com>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox