3 ms·
I will say that I agree with almost everything you’ve said on this thread, but we did add std::fs::{read,read_to_string} for files to have this convenience. Add
by steveklabnik 6y ago
I will say that I agree with almost everything you’ve said on this thread, but we did add std::fs::{read,read_to_string} for files to have this convenience. Adding something for stdin would bring that up to parity.
- estebank 6y agoSomehow I missed/forgot about that addition to the stdlib. I understand why (as evidenced by the requests in this same thread), but it I'm sad it's another thing I have to look for in code reviews ^_^'
- e12e 6y agoWould that work with /dev/stdin on Linux ?
- steveklabnik 6y agoI’d imagine so.