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

Rename select modifier to changes(of:) #102

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Conversation

ra1028
Copy link
Owner

@ra1028 ra1028 commented Apr 9, 2024

Pull Request Type

  • Bug fix
  • New feature
  • Refactoring
  • Documentation update
  • Chore

Description

The name select gives the wrong impression of simply deriving a property of an atom value, and I frequently saw cases where the important nature that comparing the pre and post change values of a property and suppressing updates when they are equivalent was missed, so this change renames it to changes(of :) and select will be deprecated.

Impact on Existing Code

select will be deprecated, and renamed to changes(of:).

@ra1028 ra1028 force-pushed the refactor/rename-select-modifier branch from c934faa to aa4e561 Compare April 9, 2024 10:47
@ra1028 ra1028 force-pushed the refactor/rename-select-modifier branch from aa4e561 to d2e635e Compare April 9, 2024 10:50
@@ -0,0 +1,8 @@
public extension Atom {
@available(*, deprecated, renamed: "changes(of:)")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

Copy link
Collaborator

@rasberik rasberik left a comment

Choose a reason for hiding this comment

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

LGTM!

@ra1028 ra1028 merged commit 1cf1e81 into main Apr 10, 2024
6 checks passed
@ra1028 ra1028 deleted the refactor/rename-select-modifier branch April 10, 2024 05:42
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