News for hackers. Stuff that matters.
Re:Go Things I Love: Channels and Goroutines by Carpetsmoker on Tuesday January 07, 2020 @02:00AM (#21977661)
> More on-topic, channels have their own tradeoffs. I often reach for WaitGroups and mutexes instead of channels, because things can get complicated fast when you're routing data around with channels...more complicated than sharing memory. I don't think it's good advice to broadly recommend one over the other--understand their tradeoffs and use the right tool for the job at hand.

Unfortunately, some Go people reach for the "this is not idiomatic"-cudgel far too quickly, instead of actually looking at the various trade-offs.

Re:Go Things I Love: Channels and Goroutines by shabbyrobe on Tuesday January 07, 2020 @06:53AM (#21979101)
Indeed! Even the Go wiki advocates exactly what you're saying about looking at the tradeoffs: https://github.com/golang/go/wiki/MutexOrChannel