News for hackers. Stuff that matters.
Re:UTF-8 String Indexing Strategies by weberc2 on Thursday May 30, 2019 @03:21PM (#20054960)
In my naive opinion, it seems like a good choice then for languages (the ones with first-class utf-8 support, anyway) to operate on scalars and leave graphemes / user-text-editing-use-cases to libraries. (This is meant as an extention to your comment, not in contradiction to it).
Re:UTF-8 String Indexing Strategies by eridius on Thursday May 30, 2019 @03:36PM (#20055102)
I'm glad that Swift has first-class support for grapheme clusters. It's just very irritating that they made it the default way to interact with strings.