Re: strange case of "if ((a & b))"

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: strange case of "if ((a & b))"
Дата
Msg-id 20210625023110.GI29179@telsasoft.com
обсуждение исходный текст
Ответ на Re: strange case of "if ((a & b))"  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: strange case of "if ((a & b))"  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On Wed, Apr 28, 2021 at 02:40:09PM -0400, Tom Lane wrote:
> Justin Pryzby <pryzby@telsasoft.com> 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?

I believe I got the impression from Michael that there was a style preference
to write != 0.

0002 is a bonus patch I found in my typos branch.  I will hold onto it for
later if nobody wants to deal with it.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: PG 14 release notes, first draft
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: SSL/TLS instead of SSL in docs