Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5jdM-0005sr-Qd for pgsql-committers@arkaria.postgresql.org; Mon, 18 Mar 2019 04:12:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h5jdL-0001te-EX for pgsql-committers@arkaria.postgresql.org; Mon, 18 Mar 2019 04:12:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5jdL-0001tX-8l for pgsql-committers@lists.postgresql.org; Mon, 18 Mar 2019 04:12:19 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5jdI-0002og-Kf for pgsql-committers@lists.postgresql.org; Mon, 18 Mar 2019 04:12:18 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 8007F36CE; Mon, 18 Mar 2019 00:12:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 18 Mar 2019 00:12:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=gfy37KqlCJlG0jTwmshoGGTW1Qy 9pd2VTG07t9zWnAQ=; b=oeybhAvosyAgaQA95O1wD9zKjhNKzFyXXyv6Zu0VRIJ aScao7YyGRd/+dCPCa+qFOYWJQ5KaL/TyfNM1h/+OgHMGbLbomrKysh3Pj12fYtj 8j+WgbRXmu0/43FvwR0cdR0+8dBzDb9dTIcANMv/uje6lr5kLH3+JYDeK5JWlHrm jL28N+USCS/4xpxZ87S7+uhhwSxJBOgVNyhr3UQXMl3S0Fk8QgoTLaSFUnwSh2T3 ZZcsx9bD4W+JL38uJ84F03p9li5GlAimXB9F7iV2bxxDt1W4TGxSv3x7Fsd4l61A SlYIPPQuWqenJiYW5Wt5+hL7LU2UZPLAmeJyJ3waGow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=gfy37K qlCJlG0jTwmshoGGTW1Qy9pd2VTG07t9zWnAQ=; b=kmu7F/WYMBddqtQxQpiMkS P+1mlAmvpE68cXmRe0DjP2gXN0ZPKYu5D1U20ioLQ7Gtp3MxVOluO0aY3iBwUDoL +UBnzDEA4ByHLNXKPB9stpGkQK/sLYIF7+B0CtenDAfC4okTGjQmUdGYLCXL1gPz 7prpqHUA+XieQudscDumYU/p8l1MXbwBK6LdSankuNaSUzWh5O8oLT7cJZ9lDH0L c8mkjlUoHXCfuDJT9msbxPlY9wsqepNNzBLaisja8LaeML4ARzv8s11I+EI5H+rn EMLvT0Dg4/KkGN154utsAGs4Y11BcA41wRGjOwXzPT0c//UaE0lXWocYUuIz000w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddriedtgdeilecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduudekrddvgedurddvhedtrdeinecurfgrrhgrmhep mhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1fa06.ap.nuro.jp [118.241.250.6]) by mail.messagingengine.com (Postfix) with ESMTPA id 323A41030F; Mon, 18 Mar 2019 00:12:11 -0400 (EDT) Date: Mon, 18 Mar 2019 13:12:00 +0900 From: Michael Paquier To: Alexander Korotkov Cc: Peter Eisentraut , Alexander Korotkov , pgsql-committers Subject: Re: pgsql: Beautify initialization of JsonValueList and JsonLikeRegexContex Message-ID: <20190318041200.GE1885@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ns7jmDPpOpCD+GE/" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Ns7jmDPpOpCD+GE/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Mar 17, 2019 at 03:09:07PM +0300, Alexander Korotkov wrote: > Anyway, I thought about this as about just beautification. If it's > bad idea, let's revert this. I agree with Peter's point here that having {0} as initial state is cleaner instead of adding an extra level of abstraction. -- Michael --Ns7jmDPpOpCD+GE/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlyPGpAACgkQnvQgOdby QH1nUA/+NPLq4vbKmDOxk4dCNJZWRRx8IEkOiOz486GmIBGmNWdSJYg1/dYesKM2 tRQi6zVrKa9LZ9LiuTG4Xa+uaS1xa3diz/1V2V1YfCt2PbBUyH5aII63JTVr81Si ql87FB7vQ26CnKzp5AxpWJlLGLpat0CcglFkFnfGBoHH8msKdZwbj4j0PM/OaQhc PsAMwTVaGJHfZMkGCUNaeLrihKNaIYEudyx/PyxT4ZeurZcY2m9HN3NirPaviFcm Wo5jQ9tOBEVK9V3iPcON26qAdq1WqmQ4scuXzVbUMNyDKzjqvVUKiY0dZnDVGiIa TzZEt/+ZttA2IT4TM3Wk4h4zUuY84hRFYgYzFWyYuzcivx7A65qGDQNLLPbN/Le+ KHNytPyaMU2f0cXrNEABJAZ3FcZolvw4rOiw3q+1aiiXoR2Qylg7hPZi4USGXx7F WzD0I8A4ejqPlrbrdocDDL59JOSistthYhZaK9ZnWq+owzu8V8QGkkO/+dm4SuzP U4M7f/z6eV8PKpuNfF2GZwPgyNalVTFovBcyR9pVMe43q4WMbNsZIHQJQZ8AAc7g UGqobF9uxtj85jCTTFcluhopshb/fpCiavCqSHi0ihrdIc103yoVrRJI7OC0/9RQ xV+NixnGNUHsY2vQw76cvHcHTncM3rEVfvIVv1cRM6VDgjt+WM0= =jjWk -----END PGP SIGNATURE----- --Ns7jmDPpOpCD+GE/--