|
|
|
|
|
by zbentley
2810 days ago
|
|
> Grapheme clusters are overrated in their importance for processing. The list of times you want to iterate over grapheme clusters: > 1. You want to figure out where to position the cursor when you hit left or right. > 2. You want to reverse a string. (When was the last time you wanted to do that?) You missed the big one: 3. You want to determine the logical (and often visual) length of a string. Sure, there are some languages where logical-length is less meaningful as a concept, but there are many, many languages in which it's a useful concept, and can only be easily derived by iterating grapheme clusters. |
|