Skip to content
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

Implement strict set operations #213

Merged
merged 2 commits into from
Dec 6, 2024
Merged

Implement strict set operations #213

merged 2 commits into from
Dec 6, 2024

Conversation

stephenamar-db
Copy link
Collaborator

@stephenamar-db stephenamar-db commented Nov 7, 2024

Implement strict operations, enabled by --strict-set-operations.
This PR also adds --throw-error-for-invalid-sets, which should help find people not passing sets to the set methods.

Finally, it fixes an inefficiency in std.member()

@stephenamar-db stephenamar-db force-pushed the set branch 2 times, most recently from 2aa95a1 to ac4167a Compare November 30, 2024 04:29
@stephenamar-db stephenamar-db marked this pull request as ready for review November 30, 2024 06:18
@stephenamar-db stephenamar-db force-pushed the set branch 2 times, most recently from f18b804 to 0c18d24 Compare December 5, 2024 22:14
Copy link
Contributor

@JoshRosen JoshRosen left a comment

Choose a reason for hiding this comment

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

LGTM!

I was unsure about whether our test harness tests all of the combinations of flags, so I also manually ran the unit tests with strict set operations disabled and confirmed that they all pass 👍

@stephenamar-db stephenamar-db merged commit b5c269d into master Dec 6, 2024
1 check passed
@stephenamar-db stephenamar-db deleted the set branch December 6, 2024 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants