Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: