News for hackers. Stuff that matters.
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.
Re:Tour of Rust by estebank on Sunday July 12, 2020 @01:21PM (#23812968)
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 ^_^'
Re:Tour of Rust by e12e on Sunday July 12, 2020 @03:00PM (#23813801)
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.