Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: Add check for channels that must be buffered #9399
There are at least two places in the standard library where channels must have a non-zero buffer in order for the program to be correct:
I propose a vet check that ensures that these channels are buffered.
I took a quick look at @rsc's pubgo dataset (circa early 2013), and in the code that compiles, I found 161 calls to
I currently have a vet check written that ensures that all calls to
This was originally discussed on the mailing list.