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

Should docs mention that iter/iter_mut access elements in order of insertion (first to last)? #15

Open
bzm3r opened this issue Sep 26, 2023 · 1 comment

Comments

@bzm3r
Copy link

bzm3r commented Sep 26, 2023

Some arenas (e.g. bumpalo) seem to return by most-recent-allocation first. On the other hand, both typed-arena and id-arena return elements in the order of insertion (like a 'normal' Vec).

Am I understanding correctly?

If so, would it make sense to submit a PR to add doc comments on iter/iter_mut that state this order (similar to what the typed-arena docs say for its iter_mut)?

@fitzgen
Copy link
Owner

fitzgen commented Sep 27, 2023

Happy to take a PR adding this documentation!

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

2 participants