C++ Logo

std-proposals

Advanced search

Re: [std-proposals] try else syntax for validity check

From: Filip <fph2137_at_[hidden]>
Date: Tue, 18 Feb 2025 17:20:18 +0100
I think you misunderstood and extrapolated what I want to every pointer.

I only want to allow the programmer to check for it with explicitly written try catch. It would help in a similar way as ranged-for does, lower the amount of code that has to be written and make it safer at the same time.

Cheers, Filip

> Wiadomość napisana przez Jason McKesson via Std-Proposals <std-proposals_at_[hidden]> w dniu 18 lut 2025, o godz. 17:05:
>
> On Tue, Feb 18, 2025 at 10:46 AM Filip via Std-Proposals
> <std-proposals_at_[hidden]> wrote:
>>
>> What if dereferencing nullptr would not be an undefined behavior?
>
> "What if we made every program significantly slower by requiring the
> compiler to insert testing into every pointer dereference as well as
> exception logic?"
>
> No, thank you.
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2025-02-18 16:20:34