Re: Propose a new function - list_is_empty - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Propose a new function - list_is_empty
Date
Msg-id B4E53BCB-74F7-4C87-8065-29924DC5AA62@yesql.se
Whole thread Raw
In response to Re: Propose a new function - list_is_empty  (Junwang Zhao <zhjwpku@gmail.com>)
List pgsql-hackers
> On 17 Aug 2022, at 10:13, Junwang Zhao <zhjwpku@gmail.com> wrote:
>
> There are some places that add extra parenthesis like here
>
> ...
>
> Is it necessary to add that extra parenthesis?

It's not necessary unless needed for operator associativity, but also I don't
object to grouping with parenthesis as a visual aid for the person reading the
code.  Going over the patch in more detail I might change my mind on some but I
don't object to the practice in general.

--
Daniel Gustafsson        https://vmware.com/




pgsql-hackers by date:

Previous
From: Junwang Zhao
Date:
Subject: Re: Propose a new function - list_is_empty
Next
From: Bharath Rupireddy
Date:
Subject: Re: Generalize ereport_startup_progress infrastructure