Alexito's World

A world of coding 💻, by Alejandro Martinez

🔗 Linked post

Check out the linked article.

I'm not the only one that wants traits in Swift

Matt talks on NSHipster about default protocol implementations. I already said that it's a feature that I miss in Siwft (and in Objective-C). I'd never saw any big talk about this in our community so now that Matt has written about it I hope that this thinking spreads ;)

The one major shortcoming of protocols, both in Swift and Objective-C, is the lack of a built-in way to provide default implementations for methods, as one might accomplish in other languages with mixins or traits.

If you liked this article please consider supporting me