Comment

Comment by gf000

No, Zig's error handling is decent - you either return an error or a value and you have some syntactic sugar to handle it. It's pretty cool, especially given the language's low-level domain.

Meanwhile Go's is just multiple value-returns with no checks whatsoever and you can return both a valid value and an error.

parent gf000 11 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton