snaggen@programming.dev to Programming@programming.dev · 2 years agoThe Absolute Minimum Every Software Developer Must Know About Unicode in 2023 (Still No Excuses!)tonsky.meexternal-linkmessage-square2fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1external-linkThe Absolute Minimum Every Software Developer Must Know About Unicode in 2023 (Still No Excuses!)tonsky.mesnaggen@programming.dev to Programming@programming.dev · 2 years agomessage-square2fedilink
minus-squareWalnut356@programming.devlinkfedilinkarrow-up1·edit-22 years agoThat depends on your definition of correct lmao. Rust explicitly counts utf-8 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.
That depends on your definition of correct lmao. Rust explicitly counts utf-8 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.