3 ms·
A pointer to a type that implements an interface can be nil, but a function that takes said pointer as an interface type will not be able to distinguish between
by eptcyka 6y ago
A pointer to a type that implements an interface can be nil, but a function that takes said pointer as an interface type will not be able to distinguish between a pointer that points to an allocated object and a nil one.