Skip to content

feat(minor): add EquatableCompared macro to support non-equatable properties - #39

Merged
supersonicbyte merged 1 commit into
ordo-one:mainfrom
ThePreppy:feature/add-custom-equality-macro
Oct 20, 2026
Merged

supersonicbyte merged 1 commit into
ordo-one:mainfrom
ThePreppy:feature/add-custom-equality-macro

Conversation

@ThePreppy

@ThePreppy ThePreppy commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds the @EquatableCompared macro for property-level equality and hashing strategies. Properties can now be compared using key-path projections, reference identity, or reusable EquatableComparisonStrategy types.

This enables non-Equatable properties to participate safely in generated conformances while keeping equality and hashing consistent.

How Has This Been Tested?

Ran the full test suite - no warnings or failures.
Added examples that compile to main.swift.

Minimal checklist:

  • I have performed a self-review of my own code
  • I have added DocC code-level documentation for any public interfaces exported by the package
  • I have added unit and/or integration tests that prove my fix is effective or that my feature works

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@ThePreppy
ThePreppy force-pushed the feature/add-custom-equality-macro branch 2 times, most recently from 1802f19 to ff5e946 Compare September 23, 2026 22:37
@ThePreppy
ThePreppy force-pushed the feature/add-custom-equality-macro branch from ff5e946 to 5c46fe4 Compare September 23, 2026 22:47
@supersonicbyte supersonicbyte changed the title feat: add EquatableCompared macro to support non-equatable properties feat(minor): add EquatableCompared macro to support non-equatable properties Oct 20, 2026
@supersonicbyte
supersonicbyte self-requested a review October 20, 2026 09:50

@supersonicbyte supersonicbyte left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@supersonicbyte
supersonicbyte merged commit 12edb73 into ordo-one:main Oct 20, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants