It’s also the same as:

typealias CombinedProtocol = TrackCountProvider & PublishDateProvier

extension CombinedProtocol { } 

I, too, find the distinction largely pointless, but I’m not a language designer.


Jon

> On Oct 20, 2016, at 11:30 PM, Cao Jiannan via swift-evolution 
> <[email protected]> wrote:
> 
> It is just same as current grammar:
> 
> extension TrackCountProvider where Self : PublishDateProvider { ... }
> 
> with a more logical format
> 
> extension TrackCountProvider & PublishDateProvider { ... }
> 
> > e.g.
> > 
> > extensionTrackCountProvider&PublishDateProvider{
> > vartrackCountAndPublishDateText:String{
> > varinfos: [String] = []
> > 
> > iflettrackCount = trackCount{
> > infos.append("\(trackCount)")
> > 
> > }
> > 
> > ifletpublishDateText = publishDate?.text {
> > infos.append(publishDateText)
> > }
> > 
> > returninfos.joined(separator: seperator)
> > }
> > }
> > 
> > 
> > 
> > 
> > 
> _______________________________________________
> swift-evolution mailing list
> [email protected]
> https://lists.swift.org/mailman/listinfo/swift-evolution

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to