> On Sep 20, 2016, at 10:56 AM, Vladimir.S via swift-evolution 
> <swift-evolution@swift.org> 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.

Charles

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to