Closed wnagrodzki closed 4 years ago
@pwetrifork @Moskacz Is it acceptable to be included?
Looks ok to me, but I would put helper methods in extensions on XXXBase protocols. This way these wouldn't be visible to the main protocol clients (wouldn’t pollute autocomplete lists etc.).
Turns out they wouldn’t be visible either way but I still prefer them on base, as this is the protocol intended to be used by the implementation while the main protocol is for clients.
Points taken, code updated.
Looks ok. Maybe we could add MySecondProtocolImpl class to the example? This way it would be more clear what we try to achieve.
@pwetrifork @Moskacz Code updated. Do you have a better proposition for name of MyProtocolBase
?
Place shared helper methods in extension of dedicated separate protocol.