The idea is that you can define a protocol with functions that take in a type that is defined by the object that uses that protocol.
This means that if you want to have a protocol extension with a default implementation for the eat function, you need to specify the type - and you may constraint it, too.
Natasha the Robot
This means that if you want to have a protocol extension with a default implementation for the eat function, you need to specify the type - and you may constraint it, too.
Natasha the Robot
Comments
Post a Comment