Why are there nil channels in Go? – justforfunc – Medium

 4 years ago
source link: https://medium.com/justforfunc/why-are-there-nil-channels-in-go-9877cc0b2308
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Everybody that has written some Go knows about channels. Most of us also know that the default value for channels is nil. But not many of us know that this nil value is actually useful. I got this…

About Joyk

Aggregate valuable and interesting links.
Joyk means Joy of geeK