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

Improve set functions #154

Merged
merged 1 commit into from
Mar 9, 2024
Merged

Conversation

rokostik
Copy link
Contributor

@rokostik rokostik commented Mar 8, 2024

This PR adds the difference set function and cleans up the union and intersection and make them more performant.

It changes the behavior for set operations on env.List: before the second argument was env.Block but I changed it to also be env.List because it makes more sense to me. If there's a reason why it was like that before I can change it back.

Copy link
Owner

@refaktor refaktor left a comment

Choose a reason for hiding this comment

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

Thank you! Great updates and good finds about the idiosyncrasies around lists and blocks, it makes more sense this way, yes! And thank you for syncing all the tests and also docstrings.

The docstrings are our weak spot, so maybe there should be a PR rule, that anyone who makes a builitin function also writes it. It beats TODODOC as I previously said it can be set to :P

@refaktor refaktor merged commit 44d1c83 into refaktor:main Mar 9, 2024
7 checks passed
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