3 ms·
And it's trivially easy to ignore an error. Also channels and WaitGroups are easy to misuse (well, that's why there's also an ErrGroup now). I'd make Golang m
by pdimitar 2y ago
And it's trivially easy to ignore an error.
Also channels and WaitGroups are easy to misuse (well, that's why there's also an ErrGroup now).
I'd make Golang my 100% go-to language if it got rid of several footguns.
Though let's be real, that's absolutely certain to never happen, they take their backwards compatibility extremely seriously. So we'll have to keep relying on checkers and linters that alleviate some of the pains somewhat.
- angra_mainyu 2y agoI'm not aware of any serious Go project without linting and tests. In fact, most projects I've worked on won't even merge a PR with ignored errors. Also, `go test -race` is a Go feature, there's nothing wrong with using it.
- dgacmu 2y agogo test -race is awesome and everyone should use it. But it's worth remembering that it's a dynamic analysis that only covers access patterns created by your tests.