Skip to content

Conversation

@jonathansharman
Copy link
Contributor

@jonathansharman jonathansharman commented Jun 26, 2022

Description

This adds ApplyPtr and DiffPtr methods, which are similar to Apply and Diff except that they take a pointer and return nil if the operation is Remove, rather than T's zero value.

Testing Considerations

Will be tested via https://github.com/nicheinc/fact/pull/301 (private to nicheinc).

Versioning

Minor.

@jonathansharman jonathansharman added the enhancement New feature or request label Jun 26, 2022
t.Errorf("Error unmarshaling JSON: %s", err)
}
if !reflect.DeepEqual(dst.Update, testCase.expected) {
if !dst.Update.Equal(testCase.expected) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might as well use the built-in method.

@jonathansharman jonathansharman marked this pull request as ready for review July 8, 2022 22:42
Copy link
Contributor

@wmarshall wmarshall left a comment

Choose a reason for hiding this comment

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

not hard requested changes, mostly questioning aliasing

Co-authored-by: Will Marshall <willcodymarshall@gmail.com>
@jonathansharman jonathansharman merged commit b70bdfc into main Aug 25, 2022
@jonathansharman jonathansharman deleted the feature/apply-ptr branch August 25, 2022 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants