Re: pgindent versus struct members and typedefs

Поиск
Список
Период
Сортировка
От Álvaro Herrera
Тема Re: pgindent versus struct members and typedefs
Дата
Msg-id 202512031723.4j5jk5sqv5rc@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: pgindent versus struct members and typedefs  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On 2025-Dec-03, Andrew Dunstan wrote:

> +1. One of the things I find particularly un-aesthetic is having some
> branches of an if statement with braces and some without. We have lots of
> cases of that, but I try to avoid it.

I actually prefer that style: when there are only two branches, and the
other branch of the if is long, I put the short one first without
braces, and then braces around the long "else" one.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"The eagle never lost so much time, as
when he submitted to learn of the crow." (William Blake)



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