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

Another difference is that &str is guaranteed to be utf-8, whereas const char* can be any encoding (or no encoding).


Also, &str is closer to const uint8_t* than it is to const char*. Chars are signed by default and are at least 8 bits, but can be wider.




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

Search: