4 ms·
> 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. Propagatin
by randyrand 5y ago
> 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.