Hacker News new | ask | show | jobs
by banthar 1912 days 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.

1 comments

The width on the screen is in pixels. Yes, I find monospace fonts increasingly pointless.