-
-
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
use of open() results or filehandles #9659
Comments
A better way of doing the open(), do something, close() pattern is to use the
Then if the |
@kmsquire wasn't attempting to say don't improve it, just that for the simple use-case there is a safer way of doing the pattern (it hadn't been mentioned on the thread last I looked). As was hinted in the thread, why not define the stream like reads and writes for the process object, it carries three asyncstreams with it. |
This is a fair point. It would be good for |
on the contrary, i think it should perhaps return only a process object, but that a process object should inherit from stream and redirect reads and writes to the appropriate stdin/stdout stream. |
FWIW, that was how I envisioned it too. |
It seems to be decided that we return a process object that you can read and write to. |
quoting Jameson - "not the top of the priority list," so isn't making 0.6 |
[novice warning]
per the discussion in https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!searchin/julia-users/reading$20compressed$20csv/julia-users/1C97f24SmKo/2K5c2OdAV94J and #6948
I would suggest that all functions that work with a part of the tuple returned by open() also work with the full tuple. in particular, I would like to see familiar language constructs like the following to "just work":
having to index fs is neither intuitive nor necessary.
regards,
/iaw
The text was updated successfully, but these errors were encountered: