public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Michael Nolan <[email protected]>
Cc: Pavel Stehule <[email protected]>
Cc: Tom Lane <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Declaring a field that is also an out parameter in a function
Date: Sun, 7 Jul 2024 07:47:15 -0700
Message-ID: <CAKFQuwYnbcoHHeH6mqgsMJoMAR01YGLutpw3O3XaJ-ZSjNWdDg@mail.gmail.com> (raw)
In-Reply-To: <CAOzAquK=sA1_PRVB3unA9uyByvSjVH3QMhd2Pjkxk_845sSPFg@mail.gmail.com>
References: <CAOzAquKPXRWp38u9cURDCd4XzKCbKLhuZvH6AQjtXGW3R6-LoQ@mail.gmail.com>
	<[email protected]>
	<CAFj8pRBcwQ3CVGj7eDFezhG-dUtrsry3T9iHf0SmEnU=YXs-LQ@mail.gmail.com>
	<CAFj8pRBZUNjmDXwByeSuE5H+vQGBDyn-AQg9-kRX4eKrAUqOCQ@mail.gmail.com>
	<CAOzAquK=sA1_PRVB3unA9uyByvSjVH3QMhd2Pjkxk_845sSPFg@mail.gmail.com>

On Sunday, July 7, 2024, Michael Nolan <[email protected]> wrote:

> On Sun, Jul 7, 2024 at 4:13 AM Pavel Stehule <[email protected]>
> wrote:
> >
> > but looks so there are false alarms related to using an alias. It is
> interesting so I have not any report about this issue, so probably using
> aliases is not too common today.
>
> I'm not sure why there's a warning about using an alias. 43.3.1 says
> to use them for improved readability.
>
>
Mostly because you should just name variables correctly the first time.  It
improves readability if you use $n parameter names, which you should not.
As noted in 43.3.2, sometimes you don’t have a choice, though new and old
aren’t usually problematic enough to warrant aliasing.

David J.


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: Declaring a field that is also an out parameter in a function
  In-Reply-To: <CAKFQuwYnbcoHHeH6mqgsMJoMAR01YGLutpw3O3XaJ-ZSjNWdDg@mail.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox