Skip to content

Comment on Strings, bytes, runes and characters in Goparent

Comments

and a code point is still not a user-perceived character

How about indexing, measuring and slicing operations based on user-perceived characters, then?

I think the number of displayed characters is even font-dependent.

Because even that is not exactly trivial, particularly for noon-Latin languages.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.