[swift-evolution] Pitch: Renaming CharacterSet to UnicodeScalarSet
Erica Sadun
erica at ericasadun.com
Wed Sep 28 21:57:16 CDT 2016
On Sep 28, 2016, at 6:14 PM, Ben Rimmington <me at benrimmington.com> wrote:
>
>
>> On 28 Sep 2016, at 22:27, Erica Sadun wrote:
>>
>> Why not rename `CharacterSet` to `UnicodeScalarSe`t, and update the initializers
>> to reflect they're being initialized from the unicode scalars in strings and ranges?
>
> I agree, but `UnicodeScalarSet` was rejected during the SE-0069 discussion:
>
> <https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160425/015685.html>
>
> -- Ben
>
D'erp. I missed that. And that's an unambiguous answer.
So let me move on to part B of the pitch: I think CharacterSets are broken.
> Xiaodi Wu: "isn't the problem you're presenting really an argument that the type should be fleshed out to handle characters (grapheme clusters) containing more than one Unicode scalar?"
-- E
More information about the swift-evolution
mailing list