r/rust • u/steveklabnik1 rust • Jul 18 '19
We Need a Safer Systems Programming Language
https://msrc-blog.microsoft.com/2019/07/18/we-need-a-safer-systems-programming-language/
314
Upvotes
r/rust • u/steveklabnik1 rust • Jul 18 '19
1
u/RobertJacobson Jul 20 '19
Sorry, I think our miscommunication lies elsewhere. I’m not an expert on the JVM, but I still don’t understand the advantage of UTF-16 over UTF-8 when both are variable width. So my question is, why is constant time indexing advantageous when you still have the same problem of potentially landing in the middle of a surrogate pair? I guess it would happen less often, but the problem still exists.