Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbp6g-0005uQ-Cc for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Apr 2021 18:40:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lbp6f-0000fu-9G for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Apr 2021 18:40:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbp6f-0000fn-2v for pgsql-hackers@lists.postgresql.org; Wed, 28 Apr 2021 18:40:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbp6Y-00010T-UZ for pgsql-hackers@lists.postgresql.org; Wed, 28 Apr 2021 18:40:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13SIe9BT2896015; Wed, 28 Apr 2021 14:40:10 -0400 From: Tom Lane To: Justin Pryzby cc: pgsql-hackers@lists.postgresql.org Subject: Re: strange case of "if ((a & b))" In-reply-to: <20210428182936.GE27406@telsasoft.com> References: <20210428182936.GE27406@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Wed, 28 Apr 2021 13:29:36 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2896013.1619635209.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 28 Apr 2021 14:40:09 -0400 Message-ID: <2896014.1619635209@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Justin Pryzby writes: > These look strange to me - the inner parens don't do anything. > I wouldn't write it with 2x parens for the same reason I wouldn't write = it with > 8x parens. Agreed, but shouldn't we just drop the excess parens rather than doubling down on useless notation? regards, tom lane