-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Merge PeekStream and BufferedInStream #4878
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
Merge PeekStream and BufferedInStream #4878
Conversation
I'm very unsure about this, but: Isn't the behaviour of Couldn't that create a problem when I try to |
956243d
to
b1ff0a2
Compare
Yes.
Ah, prior experience has made me take something for granted here: in the traditional libc/POSIX |
b1ff0a2
to
38479bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this to take into account the use case of being able to do a "put back" operation that is guaranteed to succeed? From the issue that this is trying to solve:
... guaranteed to be able to "put back" this many elements.
Feel free to re-open with feedback addressed & rebased. It also sounds like it may be worth discussing on #4501 before implementing, since this takes the accepted proposal in a different direction. |
Child of #4505
Closes #4501