Swift Default Protocol Implementations

Mattt Thompson:All of this highlights a significant tension between methods and functions in Swift.The Object-Oriented paradigm is based around the concept of objects that encapsulate both state and behavior. However, in Swift, it’s simply impossible to implement certain generic functions as methods on the struct or class itself.[…]Because of the constraint on the element of … Continue reading Swift Default Protocol Implementations