IssueRaiser

Personally, I wish there was a GraphemeCluster class, with a way to coerce a String into an Iterable<GraphemeCluster>, Collection<Graphem...

Personally, I wish there was a GraphemeCluster class, with a way to coerce a String into an Iterable<GraphemeCluster>, Collection<GraphemeCluster>, etc. Because most of the time people don't want to iterate over code points - they want to iterate over user-perceived characters instead. It makes more sense that by default "école".reverse() (that's the two-code-point version of "é") would be "elocé" rather than "eloće". But I've said a lot on the subject of strings already: https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8198811 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8066158 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7606084 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7574665 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7075858

Posted by TheLoneWolfling on Sep 2, 2014, 5:34 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.9,000 issues0 comments

complaint (Other)

Personally, I wish there was a GraphemeCluster class, with a way to coerce a String into an Iterable<GraphemeCluster>, Collection<Graphem...

TheLoneWolflingSep 2, 2014, 5:34 PM

Personally, I wish there was a GraphemeCluster class, with a way to coerce a String into an Iterable<GraphemeCluster>, Collection<GraphemeCluster>, etc. Because most of the time people don't want to iterate over code points - they want to iterate over user-perceived characters instead. It makes more sense that by default "école".reverse() (that's the two-code-point version of "é") would be "elocé" rather than "eloće". But I've said a lot on the subject of strings already: https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8198811 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8066158 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7606084 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7574665 https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7075858

Comments (0)

No comments yet. Start the discussion.

Comment on this issue