Skip to content

Replace every polymorphic uses of List.mem by a version that doesn't use Repr.equal#6644

Merged
kit-ty-kate merged 1 commit intoocaml:masterfrom
kit-ty-kate:no-poly-list-mem
Sep 11, 2025
Merged

Replace every polymorphic uses of List.mem by a version that doesn't use Repr.equal#6644
kit-ty-kate merged 1 commit intoocaml:masterfrom
kit-ty-kate:no-poly-list-mem

Conversation

@kit-ty-kate
Copy link
Copy Markdown
Member

@kit-ty-kate kit-ty-kate commented Aug 18, 2025

Some clean up.

See ocaml/ocaml#9928 for the underlying reason why Repr/(=)/Stdlib.compare/... should be avoided.

Queued on top of #6442

@kit-ty-kate kit-ty-kate added this to the 2.5.0~alpha1 milestone Aug 18, 2025
@kit-ty-kate kit-ty-kate force-pushed the no-poly-list-mem branch 2 times, most recently from 6f5e05c to 7c0ec77 Compare August 18, 2025 15:02
@kit-ty-kate kit-ty-kate added the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Aug 18, 2025
@kit-ty-kate kit-ty-kate removed the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Aug 29, 2025
@kit-ty-kate kit-ty-kate requested a review from rjbou August 29, 2025 11:57
Copy link
Copy Markdown
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

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

I have a personal preference to have the equality functions added in their own commit, but it is not mandatory per se

@kit-ty-kate
Copy link
Copy Markdown
Member Author

I have a personal preference to have the equality functions added in their own commit, but it is not mandatory per se

I have a personal preference for the opposite. I like to have both definition and use in the same commit to show the purpose of the new API

@kit-ty-kate kit-ty-kate merged commit 8c542a9 into ocaml:master Sep 11, 2025
58 checks passed
@kit-ty-kate kit-ty-kate deleted the no-poly-list-mem branch September 11, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants