Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Hex string literals (was Re: C23 thoughts and opinions) Date: Wed, 19 Jun 2024 02:32:30 -0700 Organization: None to speak of Lines: 17 Message-ID: <87h6dpxopd.fsf@nosuchdomain.example.com> References: <87y18047jk.fsf@nosuchdomain.example.com> <87msoe1xxo.fsf@nosuchdomain.example.com> <87ikz11osy.fsf@nosuchdomain.example.com> <87plt8yxgn.fsf@nosuchdomain.example.com> <87cyp6zsen.fsf@nosuchdomain.example.com> <874jahznzt.fsf@nosuchdomain.example.com> <87v82b43h6.fsf@nosuchdomain.example.com> <87iky830v7.fsf_-_@nosuchdomain.example.com> <87cyof14rd.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Wed, 19 Jun 2024 11:32:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="14c46e9d4441e9b6d7e573ea203ad727"; logging-data="2006658"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+K6gjiHdEty9vLekhkfwx9" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:Fd13Fq5DeKQCZ2NpuMXxHpY0uGw= sha1:F8mOKstlzz0/nROBvsMvBMlab7E= Bytes: 2441 Lawrence D'Oliveiro 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.com void Void(void) { Void(); } /* The recursive call of the void */