News for hackers. Stuff that matters.
Re:Tour of Rust by zozbot234 on Sunday July 12, 2020 @01:50PM (#23813194)
Returning a String is not necessarily a mistake; you could check for UTF-8 validity and error out if the line is not valid UTF-8 - and if you're providing a wrapper for "simple" uses, this might even be the right call. You're right that the general case involves outputing raw bytes, of course.

There are no comments on this comment yet.