3 ms·
Go has plenty of weird, inconsistent dark corners. To name one off the top of my head, indexing a value in a nil map returns a zero value, while indexing a valu
by pcwalton 8y ago
Go has plenty of weird, inconsistent dark corners. To name one off the top of my head, indexing a value in a nil map returns a zero value, while indexing a value in a nil slice panics.