News for hackers. Stuff that matters.
Re:Why Go's Error Handling Is Awesome by Kolja on Tuesday July 07, 2020 @08:59AM (#23758715)
I think Zig's error handling is even better: https://ziglang.org/#toc-A-fresh-take-on-error-handling

Return values are a pair of an error value (internally basically an enum) and a result value. Error handling is mandatory, but passing errors to the caller from a nested function can be done by prefixing with `try`.

IIRC, Swift is similar.

There are no comments on this comment yet.