Skip to content

Commit

Permalink
Update changelog for SE-0188
Browse files Browse the repository at this point in the history
  • Loading branch information
natecook1000 committed Nov 28, 2017
1 parent 04518af commit f7c55d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ CHANGELOG
Swift 4.1
---------

* [SE-0188][]

Index types for most standard library collections now conform to `Hashable`.
These indices can now be used in key-path subscripts and hashed collections:

```swift
let s = "Hashable"
let p = \String.[s.startIndex]
s[keyPath: p] // "H"
```

* [SE-0143][] The standard library types `Optional`, `Array`, and
`Dictionary` now conform to the `Equatable` protocol when their element types
conform to `Equatable`. This allows the `==` operator to compose (e.g., one
Expand Down Expand Up @@ -6810,3 +6821,4 @@ Swift 1.0
[SE-0184]: <https://github.com/apple/swift-evolution/blob/master/proposals/0184-unsafe-pointers-add-missing.md>
[SE-0185]: <https://github.com/apple/swift-evolution/blob/master/proposals/0185-synthesize-equatable-hashable.md>
[SE-0186]: <https://github.com/apple/swift-evolution/blob/master/proposals/0186-remove-ownership-keyword-support-in-protocols.md>
[SE-0188]: <https://github.com/apple/swift-evolution/blob/master/proposals/0188-stdlib-index-types-hashable.md>

0 comments on commit f7c55d2

Please sign in to comment.