News for hackers. Stuff that matters.
Re:Portable Cloud Programming with Go Cloud by atombender on Wednesday July 25, 2018 @07:34AM (#17608453)
Context is a pet peeve of mine. It's a design mistake as implemented, even if it serves an important function. It infects everything, forcing every method to pass contexts around, and it conflates multiple separate concerns (cancellation, deadlines, and key/value data).

Given that all of a Go program sooner or later will need contexts somewhere, it would be much cleaner to let goroutines have this stuff implicitly. I don't know enough about the intervals to say whether this is feasible with the current runtime, though.

Re:Portable Cloud Programming with Go Cloud by gant on Wednesday July 25, 2018 @09:19AM (#17609005)
People really seem to dislike context in the standard library too:

https://github.com/golang/go/issues/20280