News for hackers. Stuff that matters.
Re:Goroutines and APIs by boomlinde on Tuesday November 19, 2019 @06:04AM (#21571992)
In general, decouple libraries from use case dependent assumptions. This holds true not just for concurrency, but for memory management, sockets, file streams etc. Don't assume that a per-object heap allocation is good enough for me. Don't assume that I want to serialize to a file system. Don't assume that a channel has a large enough buffer.

There are no comments on this comment yet.