-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add documentation for IO interface (rebased) #59069
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
Conversation
- Change required methods to read/write/eof (basic byte operations) - Move unsafe_read/unsafe_write to optional methods for performance - Add comprehensive list of optional IO methods - Update description to clarify that byte read/write are fundamental - Explain unsafe methods are for high-performance scenarios - Clarify eof behavior and state query methods 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
doc/src/manual/interfaces.md
Outdated
| These rules allow broadcasting to keep the sparse representation for operations that result | ||
| in one or two dimensional outputs, but produce an `Array` for any other dimensionality. | ||
|
|
||
| <<<<<<< HEAD |
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.
This doesn't look right?
|
How does this relate to #58024? |
| | `isopen(io)` | Whether the IO stream is usable. | | ||
| | `isreadable(io)` | Whether the IO stream supports reading. | | ||
| | `iswritable(io)` | Whether the IO stream supports writing. | | ||
| | `shutdown(io)` | Close the stream for writing. | |
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.
shutdown doesn't exist.
|
Not necessarily related? This was just doing the |
The intention is to add just a minimal doc string. Other PRs attempt to document the interface, such as: * JuliaLang#41291 * JuliaLang#58024 * JuliaLang#59069
The intention is to add just a minimal doc string. Other PRs attempt to document the interface, such as: * #41291 * #58024 * #59069 --------- Co-authored-by: Jakob Nybo Nissen <[email protected]>
The intention is to add just a minimal doc string. Other PRs attempt to document the interface, such as: * JuliaLang#41291 * JuliaLang#58024 * JuliaLang#59069 --------- Co-authored-by: Jakob Nybo Nissen <[email protected]>
Summary
Background
This PR adds missing documentation for Julia's IO interface, helping developers understand how to implement custom IO types. The documentation covers the essential methods needed and provides practical examples.
Changes
🤖 Generated with Claude Code