I wanted to know if GoLang is supposed to compile and run with sends to nil channels. An example is:
func main() {
var ch chan string
var msg string
msg ="echo"
ch <-msg
msg = <-ch
}
That compiles but should it since there is no channel assigned just a nil. You don't discover there is a problem until you execute it and worse some IDEs dont tell you this is a problem.