News for hackers. Stuff that matters.
Re:One Year After Switching from Java to Go: Our Experiences by nine_k on Tuesday February 18, 2025 @09:10PM (#43097757)
Implicit shared state? Exactly the thing to enjoy in a highly concurrent environment!

At least I hope that a context can be immutable throughout. I only see one variable in the documentation of the context package. Extending it with mutable fields, and mutating them to pass data between functions, would be something I'd never approve in a code review.

Re:One Year After Switching from Java to Go: Our Experiences by cyberax on Wednesday February 19, 2025 @03:17AM (#43099837)
The context itself is immutable, it's essentially a linked list (or actually a tree). If you need to "mutate" it, you create a new segment that links to a previous segment.