logoalt Hacker News

mrkeen01/21/20251 replyview 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_gipsy01/21/2025

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