Re: pgsql: Beautify initialization of JsonValueList andJsonLikeRegexContex

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pgsql: Beautify initialization of JsonValueList andJsonLikeRegexContex
Дата
Msg-id ecfcfb5f-3233-eaa9-0c83-07056fb49a83@2ndquadrant.com
обсуждение исходный текст
Ответ на pgsql: Beautify initialization of JsonValueList andJsonLikeRegexContex  (Alexander Korotkov <akorotkov@postgresql.org>)
Ответы Re: pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Список pgsql-committers
On 2019-03-17 10:59, Alexander Korotkov wrote:
> Beautify initialization of JsonValueList and JsonLikeRegexContext
> 
> Instead of tricky assignment to {0} introduce special macros, which
> explicitly initialize every field.

To me, this patch is exactly the opposite of what I'd do to "beautify
initialization".  It doesn't seem sustainable to me to create a special
macro for every structure in the code, not does it improve readability.
It is much clearer that {0} is uniformly the starting state.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Beautify initialization of JsonValueList andJsonLikeRegexContex
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex