Re: pgsql: Beautify initialization of JsonValueList andJsonLikeRegexContex - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql: Beautify initialization of JsonValueList andJsonLikeRegexContex
Date
Msg-id ecfcfb5f-3233-eaa9-0c83-07056fb49a83@2ndquadrant.com
Whole thread Raw
In response to pgsql: Beautify initialization of JsonValueList andJsonLikeRegexContex  (Alexander Korotkov <akorotkov@postgresql.org>)
Responses Re: pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex
List 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 by date:

Previous
From: Alexander Korotkov
Date:
Subject: pgsql: Beautify initialization of JsonValueList andJsonLikeRegexContex
Next
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex