[Accepted with modification] SE-0221: Character Properties

SE-0221: Character Properties has been accepted, with the exception of the .isEmoji property.

The core team accepts the principle for the isEmoji property, but wants to continue the discussion of exactly how it should work. Therefore the thread will remain open for this specific topic through August 10th.The other functionality can be merged into master in the meantime.


Updated Review Status

The core team has resolved to change the status of this proposal to accepted with modification, deferring the .isEmoji property to a later proposal.

The core team still believe it is a useful feature for the standard library, but needs more investigation that should not hold up the rest of this proposal.

In addition, the proposal will drop the source-breaking change to the existing FixedWidthInteger.init?. While this would be the preferred naming for a newly proposed initializer, it doesn't clear the bar for a source-breaking change for Swift 5.


I have a question about .asciiValue property.
Why type is this UInt8, not Int8? Are there any specific reasons except that ASCII is non-negative value?

Swift uses unsigned types for these purposes throughout the language: ASCII.CodeUnit is a typealias for UInt8.

1 Like