Re: Fixed a typo in comment in compress_lz4.c

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Fixed a typo in comment in compress_lz4.c
Date: 2025-10-13 21:31:01
Message-ID: E3172A7E-E06B-4899-8D42-575F463955FB@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 13 Oct 2025, at 23:25, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:

> Fixed a typo: "iff" -> "if" that I found while reviewing the other patch.

iff is shorthand for "if and only if", so it is correct here. That being said,
it's also the cause of many typofix suggstions so it's clearly not widely known
anymore and we try to avoid it new code/comments. Maybe a case could be made
for changing all the iff's in the code to aid readability, but it would have to
be measured against the induced churn.

--
Daniel Gustafsson

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2025-10-13 21:40:31 Re: Make COPY format extendable: Extract COPY TO format implementations
Previous Message Chao Li 2025-10-13 21:25:03 Fixed a typo in comment in compress_lz4.c