Re: pgindent vs variable declaration across multiple lines

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pgindent vs variable declaration across multiple lines
Date: 2023-01-20 23:50:56
Message-ID: CA+TgmobDU1jRiH5TuTQfT_Rx4Xw_FCj+3-kbvqhmxkRXh-MQ-A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 19, 2023 at 8:31 PM Andres Freund <andres(at)anarazel(dot)de> wrote:
> I know I can leave the variable initially uninitialized and then do a separate
> assignment, but that's not a great fix.

That's what I do.

If you pick names for all of your data types that are very very long
and wordy then you don't feel as bad about this, because you were
gonna need a line break anyway. :-)

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2023-01-21 00:09:50 Re: Introduce a new view for checkpointer related stats
Previous Message Andres Freund 2023-01-20 23:12:01 Re: pgindent vs variable declaration across multiple lines