3 ms·
I want to like Go but the language is designed such that writing it requires a lot of discipline to not do something silly by accident: https://www.uber.com/blo
by vore 4y ago
I want to like Go but the language is designed such that writing it requires a lot of discipline to not do something silly by accident: https://www.uber.com/blog/data-race-patterns-in-go/ https://www.uber.com/blog/data-race-patterns-in-go/
- bsaul 4y agoi know the "pass sync.mutex by value" error was diagnosed by my linter, but are there any plan to fix all those issues in the go compiler itself ? Thoses are really bad footguns.
- morelisp 4y agoAlthough `go vet` is nominally a linter it's probably more accurate in relation to other languages to think of it as `-Werror`. Everything it reports should be considered a serious issue, and it runs by default during `go test`. They haven't been moved to the compiler proper out of back-compat concerns (but lately even some of those are being overridden for very pathological things like int/string conversion).