News for hackers. Stuff that matters.
Re:Thoughts on Rust, a few thousand lines in by int_19h on Wednesday January 09, 2019 @07:28PM (#18870467)
I think that's too extreme. There are many legitimate reasons to slice non-ASCII text - for example, to split it on newlines.
Re:Thoughts on Rust, a few thousand lines in by mlindner on Wednesday January 09, 2019 @08:45PM (#18870832)
That's not trivial and different languages vary in how they handle new line characters even. https://stackoverflow.com/questions/44995851/how-do-i-check-...
Re:Thoughts on Rust, a few thousand lines in by int_19h on Wednesday January 09, 2019 @11:32PM (#18871541)
You can still split non-ASCII text on ASCII newlines, and quite often that's exactly what needs to be done.
Re:Thoughts on Rust, a few thousand lines in by Retra on Thursday January 10, 2019 @09:34AM (#18874062)
And usually, you don't want it to cost O(n) on top of whatever parser you ran to find those newlines.