Y
Hacker News
new
|
ask
|
show
|
jobs
by
int_19h
2718 days ago
I think that's too extreme. There are many legitimate reasons to slice non-ASCII text - for example, to split it on newlines.
1 comments
mlindner
2718 days ago
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-...
link
int_19h
2718 days ago
You can still split non-ASCII text on ASCII newlines, and quite often that's exactly what needs to be done.
link
Retra
2717 days ago
And usually, you don't want it to cost O(n) on top of whatever parser you ran to find those newlines.
link