Whats the reason behind panicking when calling close on a closed channel? Receiving on a closed channel returns the zero value. Wouldn't it be safer to do a no-op and rely on the multivar return to inform the caller when it is successful?
Though, maybe the latter point could be confusing with regard to what was successful, the channel being closed or the operation. -- 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.