3 ms·
> How do you list all interfaces a give type supports just by looking at it? That question doesn't make any sense. I can write a new interface that an existing
by NateDad 12y ago
> How do you list all interfaces a give type supports just by looking at it?
That question doesn't make any sense. I can write a new interface that an existing type supports and then use that type as that interface. That's the awesome power of go interfaces. Using existing types for things their original creators couldn't have thought of.
- pjmlp 12y ago> That question doesn't make any sense. You are a consultant playing fireman in a Fortune 500 corporation. Your task, in case you accept it, is to fix a performance problem no one from in-house teams has been able to track down. The code is developed in three sites, all in separate time zones, with an overall size of 40 developers ideally churning code 8 hours a day. Now dive in into this code and fix the issue. It is a fixed price project of one week. This is an example how code navigation is valuable. > That's the awesome power of go interfaces. Like any language that supports structural typing, nothing awesome about it.