[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 37889523278: Add new `swap` macro and use it
From: |
Stefan Kangas |
Subject: |
Re: master 37889523278: Add new `swap` macro and use it |
Date: |
Sat, 13 Jan 2024 02:02:53 -0600 |
Eli Zaretskii <eliz@gnu.org> writes:
> Regardless of portability issues, I think the macro should be called
> SWAP, upper-case, to avoid clashes with functions.
Upper case more conventional for a macro, indeed. I consider these
three as exceptions: min, max, swap. The former two, we already have.
But I won't insist on using lower case also for `swap`, if you think
it's better not to.
Do you think it's worth changing upper case function names to lower case
also? I find lower case names makes code more readable.
- Re: master 37889523278: Add new `swap` macro and use it, (continued)
- Re: master 37889523278: Add new `swap` macro and use it, Eli Zaretskii, 2024/01/26
- Re: master 37889523278: Add new `swap` macro and use it, Richard Stallman, 2024/01/18
- Re: master 37889523278: Add new `swap` macro and use it, Po Lu, 2024/01/18
- Re: master 37889523278: Add new `swap` macro and use it, Gregory Heytings, 2024/01/26
- Re: master 37889523278: Add new `swap` macro and use it, Stefan Kangas, 2024/01/27
- Re: master 37889523278: Add new `swap` macro and use it, Gregory Heytings, 2024/01/27
Re: master 37889523278: Add new `swap` macro and use it,
Stefan Kangas <=
Re: master 37889523278: Add new `swap` macro and use it, Stefan Kangas, 2024/01/06