Hacker News new | past | comments | ask | show | jobs | submit login

Why wouldn't UTF-8 offer the same O(1) indexing? I still think they should fix regex/charCodeAt etc to support the newer characters above 0xFFFF as demonstrated, it would see dramatic memory improvements and remove the need for hacks to detect surrogate pairs.



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

Search: