4 ms·
What do you mean by "work"? That you can store arbitrary bytes in a string? That's a pretty low bar.
by uxp8u61q 3y ago
What 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.