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

Slight rewrite and breaking change #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

adlai
Copy link

@adlai adlai commented Nov 18, 2024

This separate Pull Request is for changes you might not want to accept. One commit is some slight rewrites of things that bugged me in the source code, although they are subjective; the other is a breaking change that renames disjoint-sets-union to disjoint-sets-unify. I think it is confusing to experienced CL programmers, familiar with cl:union behaving non-destructively, that a function whose name includes "union" would modify its argument. It might be preferable to name it like cl:nunion, the destructive variant; however I think these are sufficiently different that it is better to use separate nomenclature.

This nomenclature avoids defining a destructive function with the name
similar to Common Lisp's standard and non-destructive UNION function.
@adlai
Copy link
Author

adlai commented Nov 18, 2024

Please note that this Pull Request also includes the commits of both #1 and #2

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