> On Mar 30, 2017, at 2:03 PM, Karl Wagner via swift-evolution > <[email protected]> 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)
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
