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

If you are exploring alternatives to the stdlib, you might commit yourself to no zero terminated strings and see where it takes you. A fundamental data type with a pointer, a length and a capacity does a lot to stop buffer overflows.


To replace C-style strings you only need the length! You also get cheap substrings which is such a common operation that it alone IMO makes it worth taking this route.




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

Search: