|
|
|
|
|
by pcwalton
2971 days ago
|
|
Data races are not easy to "code review out". That is contrary to decades of experience. All you have to do in Go to get a race is to close over a for loop induction variable in a goroutine. There is not a large difference between C and Go here. In fact, races might be easier in Go than in C, because it's easier for goroutines to close over mutable variables. |
|
In languages like C and C++.
I haven't really seen this as a big problem in Go. I know of one vulnerability involving this, personally. I haven't gone looking though.
Regardless, I think there's a world of difference between C and Go when it comes to memory safety.