Adding things to the std library


#1

When some people in this forum have suggested small additions to the standard library, sometimes they have received answers like “there’s a high bar for additions to the std lib”, etc. That’s fine and right, you can’t add random things to a std lib and keep maintaining them forever (despite there’s an experimental period that allows to remove them if they are found useless), and what I find useful could be useless for most other people. But then I see merges like:

https://github.com/rust-lang/rust/pull/44031
https://github.com/rust-lang/rust/pull/43245
https://github.com/rust-lang/rust/pull/43500

Where are the use cases? How many people have asked for those things? I am not saying such additions are bad, but I think we should try to keep that bar at roughly constant height :slight_smile: I think there are things more useful than string::retain to add to the std library now.


#2

This post makes more sense on https://internals.rust-lang.org/ than here.