In case you were ever curious...I gathered some data about how many
cases select statements usually have, based on godoc.org-listed
packages. It's in the big, obvious table at
https://github.com/josharian/countselectcases.
No great surprises. Some tidbits:
* Over 75% of selects are either 1 communication case and a default
case or 2 communication cases.
* ~1.5% selects are used to park the goroutine (i.e. select{}).
* ~5.5% could be removed entirely, due to having exactly one case.
* The largest number of cases is 14(!).
Caveat lector, of course.
As long as I've got this corpus downloaded...anyone have ideas for
other interesting stats to look at?
-josh
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.