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

But this is a slice. So technically a []char?


Not really. It's only a reference to the original string, a start index, and an end index. It doesn't store a second (partial) copy of the string.




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

Search: