-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
readline(s), eachline: make chomp=true
a keyword arg
#20203
Conversation
5492124
to
444327e
Compare
""" | ||
function readline(filename::AbstractString; chomp::Bool=true) | ||
open(filename) do f | ||
readline(f, chomp=chomp) |
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.
nonstandard indent
444327e
to
7505a5c
Compare
chomp
a keyword arg, default=truechomp=true
a keyword arg
Tests passed, then I noticed a problem constructing |
7505a5c
to
6f677c7
Compare
Thanks @mpastell for persisting through the multiple revisions! |
@nalimilan Thanks for the support and @StefanKarpinski thanks for finishing this! I have been extremely busy with my actual job the past week. |
I always take a pass through NEWS before a release to make sure everything is clear and included. Can fix this up then. |
I have to say, that this is a really pleasant change. Hopefully it won't cause too much trouble, but I think this really is worth it – chomped lines is a much more useful default. |
Fix readlines(::Cmd), was accidentally broken in #20203
chomp is a keyword argument of readline now and defaults to `true`: [julia #20203](JuliaLang/julia#20203)
This is a continuation of @mpastell's excellent work in #19944.