Skip to content

Can std::io::Buffer be removed from the prelude? #19268

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

Closed
mitchmindtree opened this issue Nov 24, 2014 · 4 comments
Closed

Can std::io::Buffer be removed from the prelude? #19268

mitchmindtree opened this issue Nov 24, 2014 · 4 comments

Comments

@mitchmindtree
Copy link
Contributor

The word "Buffer" is highly useful across many different kinds of applications i.e. sample buffers, frame buffers, etc etc, and it seems strange for Rust to assume the io::Buffer is important enough to pollute the name space of every module (especially considering it's still experimental).

As an audio developer I haven't used io::Buffer once, however I've already ran into three situations (each in a separate crate) where I'd like to use the name Buffer, however vim's syntax highlighting kicks in each time and reminds me it's taken ;) I can imagine many of the graphics folk have run into this too.

It's really not that big of an annoyance but I just thought i'd check what your thoughts are on having it removed from the prelude? I'd be happy to have a go at it if someone were to give the all clear?

@Gankra
Copy link
Contributor

Gankra commented Nov 24, 2014

CC @aturon

@sfackler
Copy link
Member

You can shadow things in the prelude and everything should just work.

@aturon
Copy link
Member

aturon commented Nov 24, 2014

We're planning to audit the prelude as part of stabilization soon, and will likely be removing a lot of the io-related items. I'm going to go ahead and close this issue for now, as this will be part of the planned stabilization process.

@aturon aturon closed this as completed Nov 24, 2014
@mitchmindtree
Copy link
Contributor Author

@sfackler @aturon thanks!

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

4 participants