public inbox for [email protected]  
help / color / mirror / Atom feed
From: Brian Williams <[email protected]>
To: Tom Lane <[email protected]>
Cc: Bruce Momjian <[email protected]>
Cc: [email protected]
Subject: Re: Nit: "Immutable" should be "pure"
Date: Thu, 7 Nov 2019 13:04:28 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>

Thanks for the feedback folks. I had not seen the IMMUTABLE argument to CREATE FUNCTION and realize this change is too expensive.

This probably will not be the last you hear on this since pureness and immutability are all the rage in development circles.   

> On Nov 7, 2019, at 12:38 PM, Tom Lane <[email protected]> wrote:
> 
> Bruce Momjian <[email protected]> writes:
>> On Thu, Nov  7, 2019 at 02:17:58PM +0000, PG Doc comments form wrote:
>>> The adjective "immutable" describing the functions and operators used in an
>>> index (see two occurrences in doc snippet below) is incorrect and should be
>>> replaced with "pure".
> 
>> I think the best we can do is to mention that IMMUTABLE functions mean
>> pure, but I am not sure there is even enough demand for that, vs.
>> confusing people.
> 
> Yeah.  I don't think this terminology is nearly as universal
> as the OP believes, so I don't feel a need to change anything.
> 
> If we adopt Corey's proposal to create a glossary [1], there'd be
> room for a parenthetical comment like "(In some circles, "pure" is the
> preferred term for this function property.)" in the glossary entry for
> "immutable".  I suspect it won't be the only entry that needs
> cross-references to other terminology.
> 
> 			regards, tom lane
> 
> [1] https://commitfest.postgresql.org/25/2305/







view thread (4+ messages)

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Nit: "Immutable" should be "pure"
  In-Reply-To: <[email protected]>

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

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