←back to thread

159 points mpweiher | 1 comments | | HN request time: 0.221s | source
1. guilhas ◴[] No.43673127[source]
Go channels, good or bad, are clearly a step up in concurrency/parallelism concepts and discourse

I think that was one of the successes of Go

Every big enough concurrent system will conclude sync primitives are dangerous and implement a queue system more similar to channels

Mutexes always look easier for starters, but channels/queues will help you model the problem better in the long term, and debug

Also as a rule of thumb you should probably handle panics every time you start a new thread/goroutine