3 ms·
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
by fpoling 5y ago
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.
- loopz 5y agoI 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.