Re: Allow declaration after statement and reformat code to use it - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Allow declaration after statement and reformat code to use it
Date
Msg-id 20210819185718.GA27156@momjian.us
Whole thread Raw
In response to Re: Allow declaration after statement and reformat code to use it  (Chapman Flack <chap@anastigmatix.net>)
Responses Re: [EXTERNAL] Re: Allow declaration after statement and reformat code to use it
List pgsql-hackers
On Thu, Aug 19, 2021 at 11:40:44AM -0400, Chapman Flack wrote:
> I'm in sympathy with all of those points. I've never believed that the
> arbitrary separation of declaration from use that was forced by C < 99
> made anything more readable. If the project were started now from scratch,
> I would be all in favor of declaring at first use.
> 
> But I think Tom's concern about backpatching hazards may carry a lot
> of weight in practice.

I think effectively it would need to be run on all supported versions,
which means the risk of introducing errors would have to be very low.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  If only the physical world exists, free will is an illusion.




pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Middleware Messages for FE/BE
Next
From: Hannu Krosing
Date:
Subject: Re: Middleware Messages for FE/BE