4 ms·
i 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 r
by bsaul 4y ago
i 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).