Hacker News new | ask | show | jobs
by mrkeen 522 days ago
> If the Go language ever comes to the point where I’d have to write this

  n, err := r.Read(context.TODO(), p)
> put a bullet in my head, please.

Manually passing around a context everywhere sounds about as palatable as manually checking every return for error.

1 comments

Exactly, the snippets needs at least three lines of inane error checking boilerplate and variable juggling.