[swift-evolution] Abstract methods
Tino Heth
2th at gmx.de
Mon Nov 6 13:44:22 CST 2017
> to me protocol extensions are both cool and evil. cool as you can add code. evil because it's more natural to add another declarations in those extensions rather than implementation:
>
> protocol Foo {
> func foo()
> }
>
> extension Foo {
> func bar() //*** natural assumption is that i can do this. but i can't
> }
After a moment of reflection, I think I understand your reasoning — but why should you want to do this?
Imho splitting types with extensions is already overused quite often, but splitting a protocol makes no sense for me at all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171106/9ee034a0/attachment.html>
More information about the swift-evolution
mailing list