2 ms·
I feel like WAT3 is the only real WAT. Looking up a key in a map you didn't "make" gives you the zero value. I think that's consistent with much of Go. But i
by mikelward 8y ago
I feel like WAT3 is the only real WAT.
Looking up a key in a map you didn't "make" gives you the zero value. I think that's consistent with much of Go. But if appending to a nil slice works, assigning to a key should never panic, even if you didn't "make" it first.