Re:Tour of Rust
by steveklabnik on Sunday July 12, 2020 @01:16PM
(#23812935)
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.
[ Parent
| on HN ]
Somehow 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 ^_^'
Would that work with /dev/stdin on Linux ?
Re:Tour of Rust
by steveklabnik on Sunday July 12, 2020 @03:59PM
(#23814282)
I’d imagine so.