justforfunc #26: why are there nil channels in Go?

justforfunc: Programming in Go · 12:05

Nil channels in Go are useful, not just a zero value that exists for completeness. Receiving from or sending to a nil channel blocks forever, so setting a channel variable to nil switches off its case in a select stat...

Read the full summary on tuber

Redirecting...