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

no, it's only for IO. It lead to way too much breakage if they changed how the string behaves.

I generally like the idea to use UTF-8 strings, but if they didn't want to break string indexing, the indexing would take O(str.length)...



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: