[swift-evolution] [Pitch] String revision proposal #1
Ben Cohen
ben_cohen at apple.com
Thu Mar 30 16:42:57 CDT 2017
> On Mar 30, 2017, at 2:03 PM, Karl Wagner via swift-evolution <swift-evolution at swift.org> wrote:
>
> So, running with the parallel, why not add a conditional conformance: "Slice: Unicode where Base: Unicode”?
>
Primarily because this would rule out giving substrings the “small string optimization" where we pack the characters into the struct directly when they’ll fit.
(or rather, given substrings will be 2-3 words, the not-even-that-small string optimization)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170330/3a19f98a/attachment-0001.html>
More information about the swift-evolution
mailing list