3 ms·
>This is something I don't quite understand about the Go community: why do people are fine with using Mutex everywhere? While I wouldn't say I never used Mutex
by torginus 4y ago
>This is something I don't quite understand about the Go community: why do people are fine with using Mutex everywhere?
While I wouldn't say I never used Mutex in my life, pretty much all the nice high-level parallelism primities, such as map-reduce, event loop-based workers, signals, cancellation can be emulated pretty well with channels - using Mutex is pretty much never necessary in day-to-day Go programming.