C++ Logo

std-proposals

Advanced search

Re: [std-proposals] fine-control exception/error/UB handling on function boundary

From: Yongwei Wu <wuyongwei_at_[hidden]>
Date: Sun, 30 Aug 2026 10:48:51 +0800
On Sun, 30 Aug 2026 at 03:31, Tiago Freire <tmiguelf_at_[hidden]> wrote:

> That’s a very extremist view. I’m not here to change the mind of
> fundamentalists in the exception handling wars.
>

I do not see how it is extremist to refute a completely wrong argument.

People may choose not to use exceptions for various reasons. I have
experienced enough such projects. It is one thing to say we do not like
exceptions, but it is another to make wrong statements about how to use
exceptions.


> My point is to explain the state as to why the proposal such has this may
> not have gathered track.
>
>
>
> You either don’t see a problem, and exceptions are the best thing in the
> world, there’s no fixing needed.
>
> Or you see the problem, and you think that exceptions are fundamentally
> broken, any attempt at fixing it is futile because you should not be using
> it in the first place.
>
>
>
> And there is no one in between.
>

You are making an invalid statement again.

I do not think exceptions are the best thing. Even though I advocate the
use of exceptions, I still use error codes at the same time. The C++ Core
Guidelines say that exceptions should be used only for exceptional
scenarios.

Apparently, I do not think exceptions are fundamentally broken.

So where am I?

Quod erat refutandum.

Received on 2026-08-30 02:49:11