News for hackers. Stuff that matters.
Re:Why I love Go by lobster_johnson on Wednesday December 06, 2017 @03:22AM (#15859500)
That solves nothing. The point was that you pollute the scope with error variables, leading to dangerous logic errors that can be hard to spot. Your snippet is no better than:

  foo, err := getFoo()
  if err != nil {
    return nil, err
  }
"err" still ends up in the scope.

There are no comments on this comment yet.