[swift-evolution] Mark UnicodeScalar.utf16 and UnicodeScalar.UTF16View as public

Eli Perkins eli.j.perkins at gmail.com
Thu Sep 22 17:59:00 CDT 2016


Hey all!

  

I picked up SR-2627 (https://bugs.swift.org/browse/SR-2627) from the Swift
JIRA project. The ticket states:

  

> UnicodeScalar.utf16 does not have access modifier and therefore is internal
but should be public, as well as UnicodeScalar.UTF16View.

  

The ticket is written in a way that makes it seem as though this change would
match the behavior of APIs such as the UTF accessors on `String`.  

  

Additionally, `UnicodeScalar.utf16` and `Unicodescalar.UTF16View` seem to be
created in `UnicodeScalar.swift`, but not used elsewhere, indicating that
these properties were intended to be exposed to developers as part of the
stdlib.

  

After submitting a pull request to implement this
(https://github.com/apple/swift/pull/4929, Maxim Moiseev and Michael Gottesman
mentioned that since this does modify the public API, a proposal should go
through swift-evolution to address this.

  

I wanted to kick off the discussion here and get feedback from the mailing
list.

  

Looking forward to chatting about this!

Eli Perkins

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160922/641a629a/attachment.html>


More information about the swift-evolution mailing list