[swift-dev] [Question] Why StringProtocol not inherit RangeReplaceableCollection?

Cao, Jiannan frogcjn at 163.com
Wed Dec 6 05:14:34 CST 2017


Hi everyone,

I have a question about StringProtocol.
Since String and Substring are adopted RangeReplaceableCollection, why StringProtocol not inherit RangeReplaceableCollection?

Also consider StringProtocol could inherit:
CustomDebugStringConvertible
CustomPlaygroundQuickLookable
CustomReflectable
CustomStringConvertible
CVarArg
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20171206/cfa772d9/attachment.html>


More information about the swift-dev mailing list