3 ms·
If they use protocols with defaults (traits, interfaces, etc.), then they have inheritance. What they don’t get with protocols, though, is polymorphism. I thin
by ChrisMarshallNY 11mo ago
If they use protocols with defaults (traits, interfaces, etc.), then they have inheritance.
What they don’t get with protocols, though, is polymorphism. I think a lot of folks confuse them.
I wrote about an odd bug that I encountered, from protocol defaults: https://littlegreenviper.com/the-curious-case-of-the-protocol-default/ https://littlegreenviper.com/the-curious-case-of-the-protoco...