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

Support Indexed and Keyed interfaces when removing nodes #181

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

twelvelabs
Copy link
Contributor

This PR adds support for the Indexed and Keyed interfaces when removing nodes from an expression.

Note: I needed to add a method for removing items from Indexed. If you'd rather avoid a breaking change, we could move RemoveValueAtIndex to a separate interface. I originally went down that route, but got stuck trying to come up with a name. MutableIndexed was the only thing I could come up with and... it doesn't really sound great to me 😬. Let me know what you prefer (or feel free to take over this PR).

Also, a belated thank you for fixing #156 ❤️! I tried out the latest release and it works great.

@ohler55
Copy link
Owner

ohler55 commented Aug 13, 2024

While I agree the Indexed interface should probably have had a RemoveValueAtIndex to start with I'd rather nat introduce a breaking change so separate interface for that method is probably best. Naming the interface does get trickier. RemovableIndexed doesn't really roll off the tongue but might be a reasonable choice.

Other than that the PR looks good although I did not verify coverage yet.

@twelvelabs
Copy link
Contributor Author

@ohler55 Updated per your suggestion.

@ohler55
Copy link
Owner

ohler55 commented Aug 30, 2024

Been on vacation. Sorry for the delay. Looks good.

@ohler55 ohler55 merged commit e422fbd into ohler55:develop Aug 30, 2024
4 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