Date: Mon, 21 Sep 2026 09:30:05 +0200
On 2026-09-21 at 09:16, Liam Graham via Std-Proposals wrote:
> Pal I want to make it clear that the name I have was some weird teenage nonsense from years ago but I’m changing it now and it doesn’t detract from my point. If I’m not a real person then who you think I am?
>
> It’s dangerous yes but explicitly casting back just adds more keystrokes and is costly for ease of development. It doesnt inherently make it safe and the CPU doesn’t care.
The CPU doesn't care, but the code reviewers do. And apparently you do
too, and are supposed to think twice before adding an ugly cast to the code.
This was added to C++ very much on purpose. We should not make casts
easier, but more obvious. And then avoid using them.
>
>> On 21 Sep 2026, at 06:42, std-proposals-request_at_[hidden] wrote:
>>
>>
>> Today's Topics:
>>
>> 1. PROPOSAL: allow implicit conversion from void * to X *
>> (Ve?ified ?)
>> 2. Re: PROPOSAL: allow implicit conversion from void * to X *
>> (Thiago Macieira)
>> 3. Re: PROPOSAL: allow implicit conversion from void * to X *
>> (Tiago Freire)
>>
>>
> Pal I want to make it clear that the name I have was some weird teenage nonsense from years ago but I’m changing it now and it doesn’t detract from my point. If I’m not a real person then who you think I am?
>
> It’s dangerous yes but explicitly casting back just adds more keystrokes and is costly for ease of development. It doesnt inherently make it safe and the CPU doesn’t care.
The CPU doesn't care, but the code reviewers do. And apparently you do
too, and are supposed to think twice before adding an ugly cast to the code.
This was added to C++ very much on purpose. We should not make casts
easier, but more obvious. And then avoid using them.
>
>> On 21 Sep 2026, at 06:42, std-proposals-request_at_[hidden] wrote:
>>
>>
>> Today's Topics:
>>
>> 1. PROPOSAL: allow implicit conversion from void * to X *
>> (Ve?ified ?)
>> 2. Re: PROPOSAL: allow implicit conversion from void * to X *
>> (Thiago Macieira)
>> 3. Re: PROPOSAL: allow implicit conversion from void * to X *
>> (Tiago Freire)
>>
>>
Received on 2026-09-21 07:30:15
