FAQ

If there are more cases, and you don't want to duplicate them, then
you can play with nilling out channels:
http://play.golang.org/p/naIbMzjkp_
Dimitry, I think this should work and idiomatic too. (didn't tried it yet).
still I wish if language supports this case then even if reader doesn't
know nil tricks can understand.

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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 9 of 11 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 29, '13 at 11:31a
activeNov 29, '13 at 12:30p
posts11
users3
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase