News for hackers. Stuff that matters.
Re:Half a million lines of Go by fpoling on Monday May 17, 2021 @07:05AM (#27182134)
In my somewhat brief experience with Go I realized that one better avoid channels even for supposedly idiomatic cases. For example, try to implement a priority queue with channels. Or why it is not possible to use the select statement against a file descriptor? Another problem is proliferation of unnecessary threads that are entirely avoidable when using mutexes.
Re:Half a million lines of Go by loopz on Monday May 17, 2021 @08:25AM (#27182649)
I agree. One should have good use cases for channels, and they're overused just to get new people started with goroutines.

Mutexes go a long way, and underpins channels anyways.