Deutsch   English   Français   Italiano  
<vlb66l$eh8e$1@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c++
Subject: Re: We have a new standard!
Date: Sat, 4 Jan 2025 12:31:33 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <vlb66l$eh8e$1@dont-email.me>
References: <C++-20241227154547@ram.dialup.fu-berlin.de>
 <20250101182527.00004b2f@yahoo.com> <vl3qpk$2rr3n$1@dont-email.me>
 <vl5dst$37mo5$2@dont-email.me> <vl5lvf$39de4$1@dont-email.me>
 <vl625a$3bj9b$1@dont-email.me> <vl66j6$3cbce$1@dont-email.me>
 <vl6gbr$3e4rd$1@dont-email.me> <vl6hj7$3ecmh$1@dont-email.me>
 <87pll4sws5.fsf@nosuchdomain.example.com> <vl8d8v$3rr84$1@dont-email.me>
 <87h66fsnxa.fsf@nosuchdomain.example.com> <vlb1rm$dq26$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 04 Jan 2025 12:31:34 +0100 (CET)
Injection-Info: dont-email.me; posting-host="1fec20f10b3b9306d95ef3133e243645";
	logging-data="476430"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19HbDn3W0GXa/bDKGUyTtOhhfjObuZZMWs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9KbjqQfp9uqaSuVEGYB6hjkO7q0=
Content-Language: en-GB
In-Reply-To: <vlb1rm$dq26$1@dont-email.me>
Bytes: 2513

On 04/01/2025 11:17, Muttley@dastardlyhq.com wrote:
> On Fri, 03 Jan 2025 11:22:09 -0800
> Keith Thompson <Keith.S.Thompson+u@gmail.com> gabbled:
>> Muttley@DastardlyHQ.org writes:
>>> Don't be obtuse for the sake of arguing.
>>
>> You used the word "expect".  I think you meant that you *want* it to
>> behave in certain ways.  You know the existing rules, and you strongly
>> dislike them.
> 
> What I would expect in a language is for mathematical operators to have the
> same precendence with numeric types whether overloaded or not. This isn't the
> case with << and >>.
> 

In C++, << and >> have the same precedence with all types - just like 
all the other operators.  The precedences are built into the grammar of 
the language.

Are you suggesting that C++ compilers should somehow have omniscient 
knowledge of user-defined types to know whether some class is a 
"numeric" type or some other kind of type which should have different 
precedences for different operators?  Do you think that would lead to a 
language that is clearer and easier to learn?