Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-10288] String should have an initializer that provides mutable access to its contents #52688

Catfish-Man opened this issue Apr 3, 2019 · 0 comments


Copy link

@Catfish-Man Catfish-Man commented Apr 3, 2019

Previous ID SR-10288
Radar rdar://problem/49562522
Original Reporter @Catfish-Man
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Improvement
Assignee @Catfish-Man
Priority Medium

md5: dffd3dce1ab3f06ce32234927af3985e


  • SR-10556 _foreignGrow should use the uninitialized-buffer String initializer once it's in

Issue Description:

For NSString->String bridging we'd like to "eagerly" bridge some NSStrings, and the most promising way of accomplishing this is copying their contents directly into a Swift String. With existing API this requires copying into a temporary buffer, then initializing with the buffer. We can do better 🙂

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant