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-12935] String initializer docs emphasize failure over repair #55381

Open
dabrahams opened this issue Jun 4, 2020 · 0 comments
Open

[SR-12935] String initializer docs emphasize failure over repair #55381

dabrahams opened this issue Jun 4, 2020 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@dabrahams
Copy link
Collaborator

Previous ID SR-12935
Radar None
Original Reporter @dabrahams
Type Bug
Additional Detail from JIRA
Votes 1
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: 6a8401dc68126b963aea8e1853f4d4c0

Issue Description:

Almost anywhere you go in the docs looking to construct a `String` from UTF8, you run into a list like this. The initializer most people want, most of the time, is the last one, but nobody is going to jump on that, especially if they have a `Data`. Furthermore, even if you were to click through to the docs for the last initializer, it doesn't tell you what happens if there is an encoding error!. Having seen all the other ones, I'd be afraid to use this initializer.

@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
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant