Skip to content

Latest commit

 

History

History
 
 

0037-protocol-oriented-library-design-pt1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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.