snaggen@programming.dev to Programming@programming.dev · 1 year agoThe Absolute Minimum Every Software Developer Must Know About Unicode in 2023 (Still No Excuses!)tonsky.meexternal-linkmessage-square41fedilinkarrow-up1242arrow-down110
arrow-up1232arrow-down1external-linkThe Absolute Minimum Every Software Developer Must Know About Unicode in 2023 (Still No Excuses!)tonsky.mesnaggen@programming.dev to Programming@programming.dev · 1 year agomessage-square41fedilink
minus-squareWalnut356@programming.devlinkfedilinkarrow-up35·edit-21 year 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.