Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: