by _ph_ · 9y ago · 0 comments
x, err := do_something()
if err != nil {
return nil, err
}
ceremony three times. In Java it happens by default, because the language designers agreed this is by far the most common case.Ignoring an error is almost always a serious mistake, so the fact that Go makes it easy and not blatant is not a good thing.
What happens by default? Not clear. (I know Java, but not up to date with recent versions.)
>Ignoring an error is almost always a serious mistake
Agreed.