4 ms·
fredPtr = nil // This line is superfluous. In Go, declarations always initialise variables to their zero value, which for all pointers is nil. (Perhaps worthy
by jimsmart 9y ago
fredPtr = nil // This line is superfluous.
In Go, declarations always initialise variables to their zero value, which for all pointers is nil.
(Perhaps worthy of a follow up article: "Go is Not C/C++"? ;)