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

I think that accessing characters by index is _probably_ a code smell in most places, especially if that string may contain arbitrary UTF-8.


Accessing string content by arbitrary indices is probably an error. Accessing string content by indices you got from previous lookups is useful for a number of situations.


If you have an index from a previous lookup, that can be a byte index.


You're right to the degree that people probably aren't using P6. :)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: