Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
assbuttbuttass
3y ago
0 comments
Share
Dereferencing isn't the only way to touch a pointer:
func (o *myObject) isNil() bool { return o == nil }
0 comments
default
newest
oldest
Cyph0n
3y ago
Right, but if you’re doing a nil check, you obviously won’t be worried about nil deferences.
j
/
k
navigate · click thread line to collapse