> 1. What's the purpose of applying the break to the select, since
> execution doesn't fall through the cases as in a traditional C/C++
> switch statement? I would have expected break here to behave more like
> breaks in an if-block, where they apply to the outer loop, not to the
> if-context itself.
There's an implicit break at the end of the block but it's still
useful sometimes to break out early.
> 2. Since break does apply to select, what's the idiomatic way to break
> out of a for-select loop? I would guess something like
See
http://golang.org/doc/go_spec.html#Break_statements
> 3. On a tangential note, what's the ordinary way to name the channels
> when you have a function that has an input quit channel and an output
> quit channel? inQuit and outQuit seem fine, but if there's a
> "standard" way to name them it would be nice to know.
Seems fine. If they are connected to different
kinds of servers you might use that to distinguish
them instead of just in and out.
Russ