Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 601 Bytes

File metadata and controls

5 lines (4 loc) · 601 Bytes

This directory contains code from Point-Free Episode: Protocol Witnesses: Part 2

Last time we covered some basics with protocols, and demonstrated one of their biggest pitfalls: types can only conform to a protocol a single time. Sometimes it’s valid and correct for a type to conform to a protocol in many ways. We show how to remedy this by demonstrating that one can scrap any protocol in favor of a simple datatype, and in doing so opens up a whole world of composability.