logoalt Hacker News

mrkeen • 01/21/2025 • 1 reply • view on HN

> 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.


Replies

the_gipsy • 01/21/2025

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