|
|
|
|
|
by neolog
1921 days ago
|
|
Explicitly declaring which types provide which interfaces is the whole point of explicit interfaces. But I don't think the "you can declare a protocol after several types already implement it" is any different under explicit vs implicit conformance checking. I can just say implementer(IReceiver)(builtins.set)
at any time. There's no temporal restriction on when I can do that. |
|
Or add a single type annotations to the method declaring that the parameter satisfies a protocol.