2 ms·
Should be titled, "Advice for people coming to Go from working on nothing but 1990s COM objects". Don't return an interface? Why would I do that, when I can st
by kazinator 2y ago
Should be titled, "Advice for people coming to Go from working on nothing but 1990s COM objects".
Don't return an interface? Why would I do that, when I can store it through void ** parameter you pass to me? Ha!
HRESULT QueryInYourFace(
REFIID riid,
void **ppvObject
);
And I won't make a move without designing interfaces. Interfaces is all there is, all the way down!
Before we write a line of code, we fill a whiteboard with boxes that have antennas with little balls on the end. Those are interfaces.