Skip to content

Swift enums/records/errors aren't Equatable or Hashable if they contain object references #2409

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

Open
mhammond opened this issue Jan 19, 2025 · 0 comments
Labels
binding-swift get involved Good opportunity for deeper-dive onboarding

Comments

@mhammond
Copy link
Member

eg

{% if !contains_object_references %}
extension {{ type_name }}: Equatable, Hashable {}

But now that we support objects implementing Eq and Hash we could get a bit smarter and look inside any objects when deciding whether to implement them.

@mhammond mhammond added binding-swift get involved Good opportunity for deeper-dive onboarding labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding-swift get involved Good opportunity for deeper-dive onboarding
Projects
None yet
Development

No branches or pull requests

1 participant