-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add TextOutputStream to FileDescriptor? #46
Comments
I really like this idea, but I'm concerned that it just doesn't work out in practice. Writes can throw, a file descriptor might not be open for writing, and We could also consider throwing overloads of |
For stderr it seems we could just swallow the throw. What about a constrained version, like What wold a stream concept do? |
"Stream concept" would be a solution for |
In one of my project I faced a similar predicament where I wanted something to act as a
It is a little verbose, but a similar solution might work well for |
Would it make sense to add
TextOutputStream
conformance toFileDescriptor
to support writing something like this:Hmm, I tried doing this:
Perhaps those would be better as
public static
members?The text was updated successfully, but these errors were encountered: