8 ms·
I commented on the article, but here as well. When dealing with unicode in Go you should be converting strings to []rune
by cthom06 13y ago
I commented on the article, but here as well. When dealing with unicode in Go you should be converting strings to []rune
- deleted 13y ago[deleted]
- tsewlliw 13y agoIs rune "right" even? I thought that rune was a single codepoint. How does that behave in the presence of combining characters or in non normalized unicode strings? https://twitter.com/glitchr_ https://twitter.com/glitchr_
- cthom06 13y agoYes it is a single codepoint. Normalization is a whole other issue, and a much less trivial one.