Skip to content

Conversation

@Kinrany
Copy link

@Kinrany Kinrany commented Oct 24, 2025

Inserts and removals have a clear sensible behavior that should happen when something is done to an empty range: nothing. The range defines the set of keys that may change, so if the range is empty, no keys may change.

While I don't think there is anything else that could possibly happen in these cases, the more important outcome is that there is no longer a risk of random panics that cannot be caught at compile time.

@Kinrany
Copy link
Author

Kinrany commented Oct 26, 2025

Addresses the same issue as #78, though the implementation is not exactly the same.

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.

1 participant