emacs-devel
[Top][All Lists]
Advanced

[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: Sun, 7 Jan 2024 09:32:25 -0800

Po Lu <luangruo@yahoo.com> writes:

>> So no, I don't currently see any evidence for the claims that this
>> "cannot be fixed" or is "impossible to implement in C".  If there is any
>> substance to that, you will probably have to explain it again.
>
> This has been axiomatic for eons.  From the comp.lang.c FAQ:

If you insist on using the word "axiomatic", which I frankly think makes
no sense here, surely that's only relevant to things proscribed by the C
standard.

Anyways, the comp.lang.c FAQ entry you quoted here does not discuss the
typeof operator.  That has been changed in more recent versions.

>> Now, as I have already explained, the macro is certainly less
>> subjectively appealing if we have to manually write out the type every
>> time.  In my view it is still a bit better, since we get both more
>> readable code and additional safety on our main targets.  (Note that we
>> don't currently use -Wconversion in Emacs.)
>
> Never in my life have I heard the statements for swapping two variables
> characterized as "insufficiently readable",
                   ^^^^^^^^^^^^^^^^^^^^^^^^^

Quote marks are inappropriate here, because those were not my words.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]