Swift-Oriented Patterns
Swift is a modern language and, coming from a purely object-oriented language background, can feel overwhelming. With its strong functional capabilities as well as extensive generics support, Swift is an expressive language that generalizes an interesting programming paradigm: protocol-oriented programming.
Protocol-oriented programming doesn't replace object-oriented programming or functional programming—it's another tool that helps you elevate your code bases to new heights. It doesn't magically transform poorly written code into unicorns and rainbows.
Alongside powerful protocols come generics-oriented programming. Generics let you write functions with protocols instead of concrete types. When programming with concrete ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access