On Sun, Dec 31, 2017 at 4:41 PM dc0d <kaveh.shahbaz...@gmail.com> wrote:

> Or the (not only) other option is check for nil channels before entering
the scope of select?

That would remove an equally important property that the RHS can se the
channel to nil.

tl;dr: The current design was thoroughly thought out. It's not perfect,
because nothing is (modulo perfect numbers ;-), but it's definitely a
reasonable design. Other reasonable designs definitely exist, though.

-- 

-j

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to