-
Notifications
You must be signed in to change notification settings - Fork 167
Eventual future in std
or alloc
?
#374
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
Comments
FWIW, I am a member of the
If projects haven't migrated in the 18 months since v2.0.0 was released, then I wouldn't have high hopes for them switching to a Moving to the standard library would also make some implementations harder, like the (Then you might argue to pull |
Thanks @cuviper - really appreciate your insight on this! I'll close this ticket to avoid polluting your issues. Thanks again for your work on this and the wider rust ecosystem. |
First off - I wanted to say that this library is great, and I use it all the time! And indeed I'm not the only one 👍
My question is:
Is there a possible future of
indexmap
inalloc
orstd
? (ideally alloc, pending rust-lang/rust#27242)I've searched rust github, zulip and indexmap github, and surprisingly haven't seen any threads on this question already, but I may have missed them, so if you know of any, please flag them.
My rough convincer is:
indexmap
in their source tree, which causes code bloat and compatibility issues (this was exacerbated by the v1 => v2 transition, but some libs also fix a version for some reason)indexmap
overhashmap
is probably the least confusing default choice. The fact the iterator on a hashmap is non-deterministic is a partial footgun for quite a few developers I think, even if it's well-known.... but of course there is the standard argument against in that having a small std library is good, and makes it easier to iterate and things (see e.g. https://blessed.rs/crates / Josh's talk on lib evolution), and e.g. maybe indexmap doesn't meet the bar or isn't sufficiently stable?
I appreciate this is probably a question for the libs team on zulip; but I wanted to get some input here first, before raising a discussion on zulip - in case there was no support from the indexmap maintainers, or there was a clear reason for this not to happen in the crate itself.
The text was updated successfully, but these errors were encountered: