News for hackers. Stuff that matters.
Re:Go's race detector has a mutex blind spot by klabb3 on Thursday July 31, 2025 @01:14PM (#44747778)
Function body, so no don’t put it in your loop. Just break it out to a helper fn if needed. This isn’t a big problem in practice.
Re:Go's race detector has a mutex blind spot by chrchang523 on Thursday July 31, 2025 @01:36PM (#44748018)
Yes, though I think tooling could be better; if I had more spare time I'd write a linter which flagged defers in loops that didn't come with an accompanying comment.
Re:Go's race detector has a mutex blind spot by pjmlp on Friday August 01, 2025 @05:30AM (#44754640)
I always think, Go is open source why not just fork it to add feature XYZ, then I realize I am better off using languages whose communities appreciate modern language design, instead of wasting my spare time with such things.