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

You've changed topic from code points to grapheme clusters. Rust's character/string support is strictly for code points (the documentation is fairly clear about the distinction).

Few string libraries actually deal with grapheme clusters as the native underlying representation (Swift being a notable exception).



The broader point I'm making is that unicode is hard and attempts to simplify it by choosing a different encoding (i.e. switching to utf-32 to save yourself from all problems) are a bit misguided.




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

Search: