From: Andrew Dunstan <andrew@dunslane.net>
To: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Fujii Masao <fujii@postgresql.org>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgsql: Avoid using ambiguous word "positive" in error message.
Date: Tue, 31 Aug 2021 09:16:07 -0400
Message-ID: <b3a5a0f7-d956-0c54-2c0d-4bbcec7064ef@dunslane.net> (raw)
In-Reply-To: <CA+TgmoYb=v5A0nK04ZZ4ejDPiphHAbKSqBZf+LUqO+_+qfnZvQ@mail.gmail.com>
References: <E1mIiyI-0005t7-6q@gemulon.postgresql.org>
<CA+TgmoZefaY3m1wgU3v-tGbSa3Qibj2jCt6T1k5Y6ybaRqqZ+Q@mail.gmail.com>
<1349356.1630332976@sss.pgh.pa.us>
<CA+TgmoYb=v5A0nK04ZZ4ejDPiphHAbKSqBZf+LUqO+_+qfnZvQ@mail.gmail.com>
On 8/30/21 10:19 AM, Robert Haas wrote:
> On Mon, Aug 30, 2021 at 10:16 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Robert Haas <robertmhaas@gmail.com> writes:
>>> The new style seems good, but I don't really agree that "positive" and
>>> "non-negative" are ambiguous. "positive" means >0 and "non-negative"
>>> means >= 0, because 0 is neither positive nor negative.
>> Well, the point is precisely that not everyone makes that distinction.
>> I agree that everyone will read "non-negative" as ">= 0"; but there's
>> a fair percentage of the population that uses "positive" the same way.
> The mathematician in me recoils.
>
Yep, me too. IIRC Ada comes with a predefined subtype named "Positive"
which has the range 1..Integer'Max. It also has "Natural" which includes
zero.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
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-committers@postgresql.org
Cc: andrew@dunslane.net, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, fujii@postgresql.org, pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Avoid using ambiguous word "positive" in error message.
In-Reply-To: <b3a5a0f7-d956-0c54-2c0d-4bbcec7064ef@dunslane.net>
References: <E1mIiyI-0005t7-6q@gemulon.postgresql.org> <CA+TgmoZefaY3m1wgU3v-tGbSa3Qibj2jCt6T1k5Y6ybaRqqZ+Q@mail.gmail.com> <1349356.1630332976@sss.pgh.pa.us> <CA+TgmoYb=v5A0nK04ZZ4ejDPiphHAbKSqBZf+LUqO+_+qfnZvQ@mail.gmail.com> <b3a5a0f7-d956-0c54-2c0d-4bbcec7064ef@dunslane.net>
* 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