[swift-evolution] [draft] Make Standard Library Index Types Hashable

Nate Cook natecook at apple.com
Fri Nov 3 13:40:35 CDT 2017


Hello!

I’d like to propose adding Hashable conformance to the standard library’s index types, making subscripts in key path expressions more useful with the standard library’s collections. Note that this will not affect the requirements for Collection’s associated Index type, only concrete types in the stdlib.

Proposal draft is here: https://github.com/natecook1000/swift-evolution/blob/756370431682f41cfd9a63e39b81a96ccae467d9/proposals/0000-stdlib-index-types-hashable.md
Implementation here: https://github.com/apple/swift/compare/master...natecook1000:nc-index-hashable

Thanks!
Nate


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


More information about the swift-evolution mailing list