Not referring to you personally, but I've heard that sentiment several times now, and I have not seen anything to back it up (as with several other golang claims).
Not referring to you personally, but I've heard that sentiment several times now, and I have not seen anything to back it up (as with several other golang claims).
result, error = fn(...)
calling this function should yield to the caller two possibilities, somehow: a success value _or_ a failure errorthe important thing is that in both cases, the control flow is visible in the source code as written
result, error = fn(...)
if there was an error, ...
if it was successful, ...
when an expression fails, you want to see the consequence in-linethe success path and the failure path are equally important
and in the case where returning both is OK, then documentation makes that clear
this is not difficult
(spoiler: no)
If the language "addresses" it by convention then it is not addressing it at a language level at all
but i'm sure i won't convince you of anything here, so good luck to you
in practice, go code bases that are subject to even minimal code review have basically no ignored errors
go code tends to be robust because the authors of the code and the community are the sort that worry about each err value, like Linux and like Python and like C itself.