-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Proposal to synthesize Equatable/Hashable for value types. #706
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
Proposal to synthesize Equatable/Hashable for value types. #706
Conversation
I've just pushed a small update to this proposal to clarify some things that have been discovered during the process of writing the WIP implementation above. |
@allevato Please see PR allevato#1 |
@allevato Based on swiftlang/swift#9758 you might need to:
|
Thanks for the heads up, @benrimmington. I updated the proposal and it looks like swiftlang/swift#9758 just got merged so I'll bring my prototype in sync with that as well. |
It would be really awesome if a synthesis framework was exposed to developers so that libraries could leverage a form of code generation, similar to Java's annotation processing. |
Hi @allevato , I'd like to kick this off for formal review soon. Please check the proposal for any last minute revisions that you'd like. Is there an implementation available for this? |
The implementation is available at swiftlang/swift#9619 |
One other point, please make sure the test case includes a test for indirect enums. |
No description provided.