3 ms·
> 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 p
by mrkeen 2y 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.
- the_gipsy 2y agoExactly, the snippets needs at least three lines of inane error checking boilerplate and variable juggling.