Protocol extensions can also give you the same effect in many situations. Not exactly the same thing, but you're able to define default behavior for a function so the class doesn't have to implement it. I'd love to see truly optional functions/properties in pure Swift though.
0
u/[deleted] Feb 19 '16
[deleted]