Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v53mr6$34g49$3@dont-email.me>
Deutsch   English   Français   Italiano  
<v53mr6$34g49$3@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!feed.opticnetworks.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: Hex string literals (was Re: C23 thoughts and opinions)
Date: Fri, 21 Jun 2024 13:06:14 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <v53mr6$34g49$3@dont-email.me>
References: <v2l828$18v7f$1@dont-email.me>
 <00297443-2fee-48d4-81a0-9ff6ae6481e4@gmail.com>
 <v2lji1$1bbcp$1@dont-email.me> <87msoh5uh6.fsf@nosuchdomain.example.com>
 <f08d2c9f-5c2e-495d-b0bd-3f71bd301432@gmail.com>
 <v2nbp4$1o9h6$1@dont-email.me> <v2ng4n$1p3o2$1@dont-email.me>
 <87y18047jk.fsf@nosuchdomain.example.com>
 <87msoe1xxo.fsf@nosuchdomain.example.com> <v2sh19$2rle2$2@dont-email.me>
 <87ikz11osy.fsf@nosuchdomain.example.com> <v2v59g$3cr0f$1@dont-email.me>
 <87plt8yxgn.fsf@nosuchdomain.example.com> <v31rj5$o20$1@dont-email.me>
 <87cyp6zsen.fsf@nosuchdomain.example.com> <v34gi3$j385$1@dont-email.me>
 <874jahznzt.fsf@nosuchdomain.example.com> <v36nf9$12bei$1@dont-email.me>
 <87v82b43h6.fsf@nosuchdomain.example.com>
 <87iky830v7.fsf_-_@nosuchdomain.example.com> <v4p0dv$jeb2$1@dont-email.me>
 <87cyof14rd.fsf@nosuchdomain.example.com> <v4s3i8$1cjdr$1@dont-email.me>
 <v4u14o$1rq9m$2@dont-email.me> <v4u62k$1sp1s$1@dont-email.me>
 <v5395s$3280j$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 21 Jun 2024 13:06:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="017bd53d5809bfe07afbcdbc63488ddf";
	logging-data="3293321"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/xNQ40dTeqXixvSGynrZpP+jUZwGjjcac="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.11.0
Cancel-Lock: sha1:9qAgNUpHYWdpvsf8bgb87VwdXtQ=
In-Reply-To: <v5395s$3280j$1@dont-email.me>
Content-Language: en-GB
Bytes: 3604

On 21/06/2024 09:13, Lawrence D'Oliveiro wrote:
> On Wed, 19 Jun 2024 10:49:24 +0200, David Brown wrote:
> 
>> On 19/06/2024 09:25, Lawrence D'Oliveiro wrote:
>>
>>> 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.
>>
>> Sometimes it makes sense for C to do the same thing in a different way
>> from C++ - but it is rare, and needs very strong justification.
> 
> The fact that it is something of a de-facto standard among other popular
> languages would count.
> 

The apostrophe was already the standard - not just a "de-facto standard" 
- in the language that is most relevant for cooperation with C.

> Is C doomed to remain forever a strict subset of C++?

C is not a subset of C++.  Their intersection covers most of C, but not 
all of it.

But C and C++ are often used together and compiled together in the same 
binaries.  A large proportion of C and C++ programmers work with both 
languages, while almost none of them have any use for, say, Ada with its 
underscore digit separator.

It makes sense when introducing new features to either language to be 
compatible with the other (if the feature is relevant to both 
languages).  C thus copies from C++, and C++ copies from C.  Sometimes 
there must be differences, but gratuitous differences are bad for 
everyone, even if they might seem a little nicer in one language in 
isolation.