-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed as not planned
Labels
proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
In the Zig codebase (and in my own, what little that is), almost every call to these functions immediately performs [in|out]Stream().stream. If getStdOut and friends just returned the streams directly, that would probably DRY a lot of code. Perhaps getStdOutFile could be added for less common use-cases.
Exceptions I found in Zig codebase:
stdout_file.write()in a couple places, butOutStreamhaswritetoo.cat_filein a test takesfs.Files, but it looks like it's implementation is only concerned with areadandwritemethod on its arguments, and would probably not be hard to change.
Metadata
Metadata
Assignees
Labels
proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.