[swift-evolution] [Pitch] allow non-nominal type extension
Cao Jiannan
frogcjn at 163.com
Thu Oct 20 22:27:15 CDT 2016
e.g.
extension TrackCountProvider & PublishDateProvider {
var trackCountAndPublishDateText: String {
var infos: [String] = []
if let trackCount = trackCount {
infos.append("\(trackCount)")
}
if let publishDateText = publishDate?.text {
infos.append(publishDateText)
}
return infos.joined(separator: seperator)
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161021/2104a7f7/attachment.html>
More information about the swift-evolution
mailing list