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

Let's have panics with explanatory messages #67

Open
wkordalski opened this issue Mar 31, 2023 · 0 comments
Open

Let's have panics with explanatory messages #67

wkordalski opened this issue Mar 31, 2023 · 0 comments

Comments

@wkordalski
Copy link

wkordalski commented Mar 31, 2023

Firstly, thank you for this crate!

Secondly, a cosmetic programmer-experience improvement:
The documentation clearly states that inserting an empty range into a RangeMap results in panic.
And it is checked with assert!().

It would be nice if the asserts get some messages, that explain that inserting an empty range is forbidden.
This would make debugging faster and understanding panics easier.

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

No branches or pull requests

1 participant