4 ms·
In my case I mostly use ABCs, not because I think they're universally better but because my use case fits them: dealing mostly with my own types, base classes p
by gjulianm 5y ago
In my case I mostly use ABCs, not because I think they're universally better but because my use case fits them: dealing mostly with my own types, base classes provide some common functionality and the number of types is limited. Protocols are great for the opposite cases: you use types that are not necessarily under your control, no shared functionality and a wider amount of types.