Hacker News new | ask | show | jobs
by bsaul 2873 days ago
You may not be familiar with swift but a protocol isn’t necessarily a class. Structs ( so, value type) can also implements a protocol, and so in effect you can not tell a lot about what you’re manipulating, beyond what’s declared at the protocol level.
1 comments

From TFA:

   class BaseGreeter: Greeter {}

   class LazyGreeter: BaseGreeter {