2 ms·
> The Go approach of “Do not communicate by sharing memory” Calling it an approach is hardly true given Go programs are generally full of shared mutable memory
by masklinn 6y ago
> The Go approach of “Do not communicate by sharing memory”
Calling it an approach is hardly true given Go programs are generally full of shared mutable memory, even more so when performance are of any concern because channels are rather slow (multiple locks are involved) but not only: any time you're sending a pointer through a channel (including sending pointer-like structures e.g. a map), you're sharing memory.