> The current syntax establishes a relationship.
> 
> X: Y
> 
> means "X will have interface of Y". Note there's no mention of inheritance or 
> protocol here: they both establish this relationship. This is why we can use
> 
> z is Y
> 
> To check whether such relationship holds. Again, there's no need to worry 
> whether Y is a class or protocol.

Totally agree. You shouldn’t care if Y is a class or protocol. You might even 
want to convert a protocol to a class down the road.

The current syntax is great, no need for changes.
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to