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

Docs: simple docstring for read(filename::AbstractString) #49836

Merged
merged 1 commit into from
May 30, 2023

Conversation

fonsp
Copy link
Member

@fonsp fonsp commented May 16, 2023

As I expressed in #43428, I felt like the current documentation is not clear enough about the method read(filename::AbstractString).

In this PR I explicitly document this method on its own, without the args... option. I suspect that args... is distracting (now users need to understand open and read(io) before reading this docstring), and it might not be obvious that you can leave args empty.

Feel free to edit this PR directly!

@vtjnash vtjnash merged commit d912d85 into JuliaLang:master May 30, 2023
giordano pushed a commit that referenced this pull request Oct 31, 2023
Point 5 of #43428

Motivation: I feel like the most fundamental *file* operations in Julia
are `read(filename::String)` and `write(filename::String, content)`, so
it makes sense to repeat their documentation in the **Filesystem**
documentation. I also see
these methods as fundamental to teach beginners.


Like #49837, the goal is to only
show short docstrings for these methods, not the whole `IOStream`
functionality. So it depends on
#49835 and
#49836 to be useful :)
giordano pushed a commit that referenced this pull request Nov 1, 2023
…efore `open` (#49837)

Point 3 of #43428

Depends on #49835 and
#49836 to be useful :)

---------

Co-authored-by: Jameson Nash <[email protected]>
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.

2 participants