News for hackers. Stuff that matters.
Re:Errors are values by enneff on Tuesday January 13, 2015 @05:54AM (#8879024)
Not everything belongs in the compiler. Go's "vet" tool might be the place for something like this. But, honestly, I have been writing Go code for 5 years and I can count the number of times that "didn't check the error" was the cause of a bug on one hand.
Re:Errors are values by twotwotwo on Wednesday January 14, 2015 @02:45PM (#8888535)
Agree on not in the compiler. A ton of folks seem to dig errcheck; having that sort of check in vet or in the Go distro somehow seems worthwhile. (Of course, if I feel that way, maybe I should put some effort where my mouth is and try and start on a patch. :)