Comment on The Absolute Minimum Every Software Developer Must Know About Unicode in 2023 (Still No Excuses!)

<- View Parent
Walnut356@programming.dev ⁨8⁩ ⁨months⁩ ago

That depends on your definition of correct lmao. Rust explicitly counts unicode scalar values, because that’s the length of the raw bytes contained in the string. There are many times where that value is more useful than the grapheme count.

source
Sort:hotnewtop