-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Change argument order to read
when reading a type
#25189
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
Comments
-1. Having |
Having |
|
Sure, and |
I think in the case of If you think about it like you're describing in prose the action being performed, FWIW when |
-1 from me as well. The biggest problem I have is that for read more generally, the arguments after the io describe what and how to read. E.g. we pass in a number |
Part of #20402.
This issue suggests making a change to the argument order of
read
to match the similar functionality in functions likeparse
.Right now
readstring
is deprecated toread(filename, String)
, instead ofread(String, filename)
.read
ing a specific type feels analogous toparse(Int, str)
and similar, so this issue suggests changing the argument order to match.@StefanKarpinski gave some historical context for the current choice on Slack:
The text was updated successfully, but these errors were encountered: