Re: Add trailing commas to enum definitions - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Add trailing commas to enum definitions
Date
Msg-id 2bce3a0b-250c-b2ed-2e91-e126072fecaf@dunslane.net
Whole thread Raw
In response to Re: Add trailing commas to enum definitions  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2023-10-23 Mo 17:04, Tom Lane wrote:
> Nathan Bossart <nathandbossart@gmail.com> writes:
>>  From a long-term perspective, I
>> think standardizing on the trailing comma style will actually improve
>> git-blame because patches won't need to add a comma to the previous line
>> when adding a value.
> Yeah, that's a good point.  I had been leaning towards "this is
> unnecessary churn", but with that idea I'm now +1.
>
>             


+1. It's a fairly common practice in Perl code, too, and I often do it 
for exactly this reason.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Various bugs if segment containing redo pointer does not exist
Next
From: Andrew Dunstan
Date:
Subject: Re: More new SQL/JSON item methods