Get the latest tech news

Context should go away for Go 2 (2017)


As usual, when a new blog post comes out on blog.golang.org, I’m all eager to read it as soon as possible. The most recent one, Contributors Summit, is a nice write-up on the issues that the Go contributors have been talking about.

At Google, we require that Go programmers pass a Context parameter as the first argument to every function on the call path between incoming and outgoing requests. This is, obviously, achieved by creating another node in the linked list, the purpose of which is to return the correct value for that key and propagate the previous context otherwise. This talk happened before the"context" package was introduced into the Go standard library and thus it discusses solutions to the cancelation problem which only involve simple channels.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Context

Context

Related news:

News photo

Devin 1.2: Updated AI engineer enhances coding with smarter in-context reasoning, voice integration

News photo

Why context-aware AI agents will give us superpowers in 2025

News photo

Is this a positive sign for the eVoTL sector? Context: ACHR signs a deal for Air Taxis in UAE