News for hackers. Stuff that matters.
Re:Proposal: Go 2: Lightweight anonymous function syntax by morelisp on Monday May 23, 2022 @02:20AM (#31475854)
The equivalent of '-Werror' in go is using linters, which will detect that.
Re:Proposal: Go 2: Lightweight anonymous function syntax by mdaniel on Monday May 23, 2022 @11:51AM (#31480591)
I have seen no such linter[0]; do you have one that you know does that?

But, sure, A++ for having to install more stuff when the go compiler considers a different "linter" problem as fatal to the build

0: yes, of course GoLand catches it but prying vim from gophers hands is hard work

Re:Proposal: Go 2: Lightweight anonymous function syntax by morelisp on Monday May 23, 2022 @01:28PM (#31482064)
https://github.com/kisielk/errcheck, which is in most of the combined linter packages by default.

We'll agree to disagree about unused imports; imports have can side-effects.