2 ms·
Defining string as a sequence of unicode codepoints is the mistake. Nobody ever cares about unicode codepoints. You either want the number of bytes or the widt
by banthar 6y ago
Defining string as a sequence of unicode codepoints is the mistake.
Nobody ever cares about unicode codepoints. You either want the number of bytes or the width of the string on screen.
UTF-32 codepoints waste space and give you neither.
- stkdump 6y agoThe width on the screen is in pixels. Yes, I find monospace fonts increasingly pointless.