3 ms·
but what if another developer wants to put a different object in that list, but it has the same methods and properties that I am expecting in Foo?
by dec0dedab0de 6y ago
but what if another developer wants to put a different object in that list, but it has the same methods and properties that I am expecting in Foo?
- mixmastamyk 6y agoIt supports duck typing with Protocol, I believe.