News for hackers. Stuff that matters.
Re:Current hardware trends make C++ exceptions harder to jus... by randyrand on Tuesday February 22, 2022 @06:20PM (#30435276)
> I have to overload my return values annd then put in a load of special cases to propogate or return the exceptional cases.

Yes + syntactic sugar. Propagating an error up can and should be a single character of code.

> collapse in a way that is traceable.

Zig supports "error traces" (note, not stack traces) by default, since they have a single common way of reporting errors and a smart compiler.

> I like the idea that there's just a mechanism to just collapse,

Go uses Panic + Recover.

There are no comments on this comment yet.