News for hackers. Stuff that matters.
Re:Multiple nil types in Go. by _ak on Tuesday January 07, 2014 @01:59AM (#7016078)
Re:Multiple nil types in Go. by cgearhart on Tuesday January 07, 2014 @08:54AM (#7017266)
`make` allocates and initializes `a`, setting it to nil effectively uninitializes the variable. See below, where I declare `c`, but don't initialize it. From the Golang spec, http://golang.org/ref/spec#Map_types, the value of an uninitialized map is nil.

http://play.golang.org/p/J46-8OEWYS

Re:Multiple nil types in Go. by _ak on Tuesday January 07, 2014 @02:33PM (#7019316)
Don't tell me, I merely added one line of code to show that more information than the interface{} being nil is kept.
Re:Multiple nil types in Go. by eonil on Tuesday January 07, 2014 @02:10AM (#7016104)
This is even more interesting.