Hacker News new | ask | show | jobs
by saagarjha 2854 days ago
> In Swift, protocol definitions can contain implementations of methods

Technically, no, they can't. What you do is write your protocol as usual, then extend the protocol with a default implementation.