[swift-evolution] Trial balloon: Ensure that String always contains valid Unicode

Guillaume Lessard glessard at tffenterprises.com
Sat Dec 19 11:57:39 CST 2015

> On 18 déc. 2015, at 14:47, Paul Cantrell via swift-evolution <swift-evolution at swift.org> wrote:
> I was quite surprised to learn that it’s possible to create Swift strings that do not contain things other than valid Unicode characters. Is it feasible to guarantee that this cannot happen?

That would be nice. I’m not sure that CFString or NSString guarantee correctness, though. If they don’t, then this could not be.

Guillaume Lessard

More information about the swift-evolution mailing list