News for hackers. Stuff that matters.
Re:Having fun with Go's nil, interfaces and errors by twic on Sunday September 18, 2016 @03:18PM (#12526708)
In this case, though, we're talking about interfaces; an interface is a pointer plus this bit we're calling a vtable. Pointers, even to different types, absolutely can be compared for equality, can't they? More specifically, i am pretty sure pointers can be compared to see if they are both nil, which is all that would be needed here.

There are no comments on this comment yet.