Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd `SeekFrom` to the IO prelude #31268
Comments
steveklabnik
added
the
A-libs
label
Feb 2, 2016
This comment has been minimized.
This comment has been minimized.
|
/cc @rust-lang/libs Adding something to the prelude is very dangerous. |
aturon
added
the
I-nominated
label
Feb 2, 2016
This comment has been minimized.
This comment has been minimized.
|
It looks like the general pattern is that only traits are a part of the io prelude. So in that way it would be counter to the pattern to add an enum like SeekFrom. |
forticulous
closed this
Feb 3, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
forticulous commentedJan 28, 2016
The IO prelude currently includes Read, Write and Seek, but in order to use Seek you almost always need
SeekFromin scope also. I think it makes sense to includeSeekFromalso.