* dc0d <kaveh.shahbaz...@gmail.com> [180124 14:44]:
> 
> >
> > If the channel is nil, there's nothing to lock. But also, there's no 
> > sending happening.
> >
> 
> So first the payload is computed and then the nil check happens?

To add to what Axel said, it would be inconsistent to only evaluate the
LHS if the RHS was non-nil.  Just like in the select case.  Consider

    foo_returns_channel() <- goo()

It should be determinable at the time the code is written (rather than
when it is executed) whether goo() will be evaluated or not.

...Marvin

-- 
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