Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 536 Bytes

File metadata and controls

5 lines (4 loc) · 536 Bytes

This directory contains code from Point-Free Episode: Protocol-Oriented Library Design: Part 1

Perhaps the most popular approach to code reuse and extensibility in Swift is to liberally adopt protocol-oriented programming, and many Swift libraries are designed with protocol-heavy APIs. In today's episode we refactor a sample library to use protocols and examine the pros and cons of this approach.