4 ms·
The Go team has discussed syntactic sugar for error handling many times. They're not against it, they're just holding out for a proposal that checks a lot of bo
by advisedwang 7mo ago
The Go team has discussed syntactic sugar for error handling many times. They're not against it, they're just holding out for a proposal that checks a lot of boxes and makes everyone happy, which hasn't happened yet.
- verdverm 7mo agoIt's a settled matter at this point for the foreseeable future https://go.dev/blog/error-syntax https://go.dev/blog/error-syntax tl;dr - proposals are no longer being considered
- release-object 7mo agoExample: https://go.dev/blog/error-syntax https://go.dev/blog/error-syntax
- f33d5173 7mo agoI they wanted error handling they would have thought for a bit then picked a good enough solution. "We only want 'X but perfect'" is the same as "we don't want X".
- thayne 7mo ago> and makes everyone happy But that's never going to happen because there is a very vocal subpopulation (I think it is a minority, but don't know for sure, and it is hard to measure that kind of thing) that is opposed to any "syntactic sugar" and wants it to stay the way it is.