Skip to content

Conversation

wvpm
Copy link
Contributor

@wvpm wvpm commented Jul 6, 2025

Before there was no way to use == with 2 references.
The developer had to decide whether to convert both to pointers or compare their indices (or their identifiers (if applicable)).
While comparing the pointers works and so far is the standard, support == directly using the indices is easier to use and still correct. Index + type is unique.

This does require tagging HasIndex with the type for context.

@wvpm wvpm requested a review from Spartan322 July 6, 2025 12:17
@wvpm wvpm added enhancement New feature or request topic:core labels Jul 6, 2025
@wvpm wvpm added this to the 0.9.0 milestone Jul 6, 2025
@wvpm wvpm force-pushed the support_==_for_hasindex branch from e0c794f to 47f47d4 Compare July 6, 2025 12:20
@wvpm wvpm merged commit 06e8b7b into master Jul 6, 2025
16 checks passed
@wvpm wvpm deleted the support_==_for_hasindex branch July 6, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request topic:core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants