Re: Add trailing commas to enum definitions

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Add trailing commas to enum definitions
Дата
Msg-id 2bce3a0b-250c-b2ed-2e91-e126072fecaf@dunslane.net
обсуждение исходный текст
Ответ на Re: Add trailing commas to enum definitions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Various bugs if segment containing redo pointer does not exist
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: More new SQL/JSON item methods