From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex
Date: Sun, 17 Mar 2019 12:59:49 +0100
Message-ID: <ecfcfb5f-3233-eaa9-0c83-07056fb49a83@2ndquadrant.com> (raw)
In-Reply-To: <E1h5Sa8-0007FZ-Co@gemulon.postgresql.org>
References: <E1h5Sa8-0007FZ-Co@gemulon.postgresql.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, akorotkov@postgresql.org
Subject: Re: pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex
In-Reply-To: <ecfcfb5f-3233-eaa9-0c83-07056fb49a83@2ndquadrant.com>
References: <E1h5Sa8-0007FZ-Co@gemulon.postgresql.org> <ecfcfb5f-3233-eaa9-0c83-07056fb49a83@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox