|
|
|
|
|
by jzelinskie
2716 days ago
|
|
Go indexes bytes on strings, even though there's a builtin type called Rune which delimits utf-8 codepoints. This is yet another footgun. Is there a language that doesn't handle this poorly? https://play.golang.org/p/CkBp0w8T621 |
|
Basically, string indexing is a lot harder than it seems at first glance, depending on what you want.