4 ms·
for i:= range list { go func() { foo(i) } } (This is a bug in the spec, but will not be fixed before Go 2 because Go 1.0 is frozen.) Shared memory by defaul
by Evbn 14y ago
for i:= range list {
go func() { foo(i) }
}
(This is a bug in the spec, but will not be fixed before Go 2 because Go 1.0 is frozen.)
Shared memory by default.
- burntsushi 14y agoYou've completely missed my point. I wasn't claiming that Go did anything to stop you from sharing memory. I was claiming that its concurrency model is CSP, not shared memory. > (This is a bug in the spec, but will not be fixed before Go 2 because Go 1.0 is frozen.) Could you kindly link me, please?