5 ms·
Dereferencing isn't the only way to touch a pointer: func (o *myObject) isNil() bool { return o == nil }
by assbuttbuttass 4y ago
Dereferencing isn't the only way to touch a pointer:
func (o *myObject) isNil() bool {
return o == nil
}
- Cyph0n 4y agoRight, but if you’re doing a nil check, you obviously won’t be worried about nil deferences.