Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign updoc: clarify unshift EOF #29950
doc: clarify unshift EOF #29950
Conversation
This comment has been minimized.
This comment has been minimized.
|
@ronag Could you please describe what the present behavior is? (i.e. before this change.) |
This comment has been minimized.
This comment has been minimized.
|
@Fishrock123: Previously |
This comment has been minimized.
This comment has been minimized.
|
As in, end the stream? It seems reasonable then to also accept |
This comment has been minimized.
This comment has been minimized.
Well, it's not really 'expedited' since it is exactly the same as Unshifting "eof" sounds very weird to me. Though, now that you question it there is probably no harm in it either... I don't mind closing this. |
This comment has been minimized.
This comment has been minimized.
|
I think there would at least be value in documenting |
This comment has been minimized.
This comment has been minimized.
|
I think we should document it, and then think about if you should be able to actually unshift EOF so that it comes before other data. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Why we should not unshift EOF? |
This comment has been minimized.
This comment has been minimized.
I guess the confusion is, what does it mean to unshift EOF? Right now it behaves exactly like push EOF which is unexpected/confusing/undefined. |
|
I do not see a compelling reason to change this. |
This comment has been minimized.
This comment has been minimized.
|
I changed this to only a doc update. @Fishrock123 |
20a6c34
to
4f73edf
|
LGTM |
7d15e65
to
e184520
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Landed in 273d38b |
ronag commentedOct 13, 2019
We should not allow unshifting EOF.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes