News for hackers. Stuff that matters.
Re:Ask HN: Is Unicode Designed Badly? by indil on Friday September 09, 2022 @01:37PM (#32782404)
>Why would your data structure make that easy to do?

Reversing a string merely indicates the problem. There are many cases for operating on graphemes instead of code points. For example, deleting the previous grapheme in a text editor when pressing backspace/delete. I think most programmers assume they're dealing with graphemes when they're actually dealing with code points. See, for example, the rune type in Go.

There are no comments on this comment yet.