[SR-15534] String views should be codable, hashable #57837
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Swift 5.5
Additional Detail from JIRA
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
The text was updated successfully, but these errors were encountered: