-
-
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
Revert "Deprecate DevNull, STDIN, STDOUT, and STDERR to lowercase" #26636
Conversation
Can we just not export them?
|
|
Python puts them in |
Sure, that would be a good place for them. |
These seem much more important than most of the |
The idea behind putting them in |
I really don't think they fit in that module though. Everything else in |
Has anyone felt the desire for an IO-related module for other reasons? Maybe it would be useful for other things. |
julia> Base.getproperty(::Type{IO}, s::Symbol) = s == :stdout ? Base.stdout : s == :stderr ? Base.stderr : throw(ArgumentError())
julia> IO.stderr
Base.TTY(RawFD(0x0000000f) open, 0 bytes waiting)
julia> show(IO.stderr, "HAHAHA")
"HAHAHA" |
😅 |
@KristofferC @stevengj That's a different thing. |
|
The stdio streams are used a lot more than the standard error function in programming, so it doesn't seem crazy that the latter should be the one to be renamed. There are lots of reasonable options, e.g. you could just use |
Triage says rename the stats function. |
This reverts PR #25959. Lowercasing these identifiers conflicts with the statistical meaning of
stderr
, i.e. the standard error. This is defined in StatsBase and widely used.