3 ms·
> Ideally, all public methods should only describe parameters and return values in terms of interfaces, and never as concrete classes. Citation needed. I've se
by 38 3y ago
> Ideally, all public methods should only describe parameters and return values in terms of interfaces, and never as concrete classes.
Citation needed. I've seen interface heavy Go code, and without fail it's always unreadable garbage. Interfaces are best used in moderation, at API boundaries only.