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

[SE-0206] Incorporate acceptance notes; set status to Implemented #844

Merged
merged 2 commits into from
Aug 15, 2018

Conversation

lorentey
Copy link
Member

  • Remove Hasher.init(seed:)
  • Remove most Hasher.combine overloads
  • Change Hasher.finalize to be __consuming
  • Clarify that Hasher is order-sensitive
  • Clarify hashValue's deprecated status (only custom implementations are deprecated)
  • Clarify that SE-0206 is not going to be source-breaking; hashValue impls will compile with a warning in 4.2 mode.
  • Update links to implementation
  • Move to Implemented status

- Remove Hasher.init(seed:)
- Remove most Hasher.combine overloads
- Change Hasher.finalize to be __consuming
- Clarify that Hasher is order-sensitive
- Clarify hashValue's deprecated status (only custom implementations are deprecated)
- Clarify that SE-0206 is *not* going to be source-breaking; hashValue impls will compile with a warning in 4.2 mode.
@lorentey lorentey requested a review from jckarter April 30, 2018 18:32
@lorentey
Copy link
Member Author

@jckarter This incorporates the changes in the core team's acceptance notes, and also clarifies that while hashValue is deprecated as a protocol requirement, this proposal is not source breaking.

The old Source Compatibility section implied that users will need to go through a forced migration step, which is not the case. I replaced it with text that describes the actual intended behavior.

swiftlang/swift#16009 and swiftlang/swift#16073 implemented the proposal. (Except for the deprecation warning when hash(into:) needs to be derived from a manual hashValue.)

@DougGregor DougGregor merged commit b6e46f9 into swiftlang:master Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants