Sujet : Re: Hex string literals (was Re: C23 thoughts and opinions)
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.lang.cDate : 19. Jun 2024, 10:32:30
Autres entêtes
Organisation : None to speak of
Message-ID : <87h6dpxopd.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Lawrence D'Oliveiro <
ldo@nz.invalid> writes:
On Tue, 18 Jun 2024 15:54:15 +0200, David Brown wrote:
... C++ could not use underscores
due to their use in user-defined literals, and C followed C++.
>
C can still offer the option for them, though.
As of the new C23 standard (not yet officially published) C *already*
uses apostrophes as digit separators. I would have preferred
underscores to apostrophes myself, but allowing both would be worse.
And C might want to introduce something similar to C++'s user-defined
literals some day.
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */