3 ms·
> [...] and similarly aren’t worried about differentiating error cases. I differentiate error cases in Go, so I'm not sure what you're talking about. Sometimes
by klodolph 4y ago
> [...] and similarly aren’t worried about differentiating error cases.
I differentiate error cases in Go, so I'm not sure what you're talking about. Sometimes it's done with ==, other times it's done with type assertions, type switches, and some helper functions in the errors package.
I've barely touched Zig.
I think it's contributing some important ideas, and maybe those ideas will get further developed in newer languages.