News for hackers. Stuff that matters.
Re:Strings, bytes, runes and characters in Go by porges on Wednesday October 23, 2013 @08:51PM (#6602788)
Note that in C# indexing on char is really indexing on UTF-16 codepoint, which is arguably worse because it seems to work, until it doesn't.
Re:Strings, bytes, runes and characters in Go by SigmundA on Wednesday October 23, 2013 @09:15PM (#6602854)
Interesting, never had to use use StringInfo to get into surrogate pair support. Although its seems like this could be fixed since both char and string are abstracted from bytes, although indexing on variable length chars would increase computation or UTF-32 would increase memory.