Skip to content
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

make flush(stream) return nothing #16076

Merged
merged 1 commit into from
May 10, 2016

Conversation

bicycle1885
Copy link
Member

@bicycle1885 bicycle1885 commented Apr 27, 2016

The current flush(stream) function returns stream or nothing depends on the type of stream argument. For example, flush(::TextTerminal) and flush(::DevNullStream) will return nothing but flush(::IOStream) and flush(::BufferStream) will return the first argument. This pull request fixes the inconsistency and makes it always return nothing. It is also reasonable to make it return the first argument, but it is not quite useful.

Exactly speaking, this is a breaking change, but I believe nobody depends on this behavior and will not break any code.

@bicycle1885 bicycle1885 force-pushed the flush-return-nothing branch from dd34186 to 166115b Compare April 27, 2016 18:54
@bicycle1885
Copy link
Member Author

Updated tests.

@bicycle1885
Copy link
Member Author

Could anyone give me 👍 or 👎 to my idea and/or pull request?

@StefanKarpinski
Copy link
Member

Seems ok to me.

@vtjnash vtjnash merged commit 0eb3875 into JuliaLang:master May 10, 2016
@bicycle1885 bicycle1885 deleted the flush-return-nothing branch May 10, 2016 21:39
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

Successfully merging this pull request may close these issues.

3 participants