> On Sep 20, 2016, at 10:56 AM, Vladimir.S via swift-evolution
> <email@example.com> wrote:
> Then, shouldn't we disallow protocol conformance 'in-place' in type's
> definition? So, if you need to conform to protocol - only extension is the
> syntax for this. In this case I can understand the idea. Otherwise - can't.
You can’t completely restrict protocol conformance to extensions, because
extensions can’t contained stored properties. Thus, to satisfy a protocol
requirement with a stored property, it must be placed in the type’s definition.
swift-evolution mailing list