Re: Fixed a typo in comment in compress_lz4.c - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Fixed a typo in comment in compress_lz4.c
Date
Msg-id E3172A7E-E06B-4899-8D42-575F463955FB@yesql.se
Whole thread Raw
In response to Fixed a typo in comment in compress_lz4.c  (Chao Li <li.evan.chao@gmail.com>)
Responses Re: Fixed a typo in comment in compress_lz4.c
Re: Fixed a typo in comment in compress_lz4.c
List pgsql-hackers
> On 13 Oct 2025, at 23:25, Chao Li <li.evan.chao@gmail.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




pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Fixed a typo in comment in compress_lz4.c
Next
From: Masahiko Sawada
Date:
Subject: Re: Make COPY format extendable: Extract COPY TO format implementations