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

This is a very thoughtful post. Real question: Is the solution to avoid C strings entirely? Use something like a Pascal string that includes the length?


Yes. For the love of god, a thousand times yes. Every other language, even some of the "C-compatible" ones uses explicit-length strings.




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

Search: