4 ms·
> This kind of assertiveness leads to garbage like C++ still not supporting UTF8 properly in 2023. My name contains diacritics. UTF8 encoded diacritics work ju
by lelanthran 3y ago
> This kind of assertiveness leads to garbage like C++ still not supporting UTF8 properly in 2023. My name contains diacritics.
UTF8 encoded diacritics work just fine in C++.
- uxp8u61q 3y agoWhat do you mean by "work"? That you can store arbitrary bytes in a string? That's a pretty low bar.
- lelanthran 3y ago> What do you mean by "work"? That you can store arbitrary bytes in a string? That's a pretty low bar. That's all that's needed for a backend language. The backend does not need to understand, or even acknowledge the existence, of grapheme clusters. Because the frontend is already having to understand all of this, it should be normalising any multi-codepoint ambiguous cluster anyway.
- JohnFen 3y agoThe backend never needs to do things like figure out how long a string is or search for one string in a database of other strings?
- lelanthran 3y ago> The backend never needs to do things like figure out how long a string Not as measured by clusters, no. > search for one string in a database of other strings? Hence I said "normalisation". The frontend already has to do all the unicode twiddling, it may as well normalise the input too.
- astrange 3y agoIt does if it ever wants to trim, summarize, sort or compare equal a string.