Require a chunk boundary at the last segment in remove #49
Labels
No labels
bug
duplicate
enhancement/documentation
enhancement/feature
enhancement/organization
question
rejected
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
UserCurt/mpath#49
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When using
remove, terminal suffixes like/A/B/Ccan be held together. It then walks throughAandBseparately before removingC, which effectively is another chunker which could result in surprising behavior in some circumstances, especially with custom indexing withRedefinesDot.Before removing the member, MPath should materialize the parent of the final segment.
When using
remove, the chunker should require a boundary before the final segment:With this change, the write-back process of
removeshould no longer iterative traverse member segments of any chunk.One purpose of
resolveis to give users a preview of the chunks to see the expected behavior. Ifremoverequires the final segment member to be in a dedicated chunk, thenresolvemay require context information such as it is being used forremove. This could affect issue #48 in that both affect chunker behavior.Fixed/implemented in
2c06ce4.removenow always has the last segment being a chunk. Users can now specifyContextnamed argument toresolve.Contexts may be extended or revised to address issue #48.