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-15534] String views should be codable, hashable #57837

Open
stephencelis opened this issue Nov 30, 2021 · 0 comments
Open

[SR-15534] String views should be codable, hashable #57837

stephencelis opened this issue Nov 30, 2021 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@stephencelis
Copy link
Contributor

Previous ID SR-15534
Radar None
Original Reporter @stephencelis
Type Bug
Environment

Swift 5.5

Additional Detail from JIRA
Votes 1
Component/s Standard Library
Labels Bug
Assignee None
Priority Medium

md5: b9f3fb6a6b8675cf561cc2350122ab4d

Issue Description:

Per this discussion, string views should probably conform to codable and hashable: https://forums.swift.org/t/why-dont-string-views-utf8view-etc-conform-to-codable-hashable-etc/53784/2

This includes adding conformances to:

  • Substring (Codable only, already conforms to Hashable)

  • String.UnicodeScalarView

  • String.UTF8View

  • String.UTF16View

  • Substring.UnicodeScalarView

  • Substring.UTF8View

  • Substring.UTF16View

@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