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

You're right. Someone brought this up on the mailing list, and I agreed that the no-NUL-in-content restriction could be dropped. A NUL byte will still be required at the end, and it will be up to apps to decide if they want to add further restrictions.


I agree with ending null bytes. It eases cross-language compatibility, and it usually costs nothing because it fits into the padding bytes anyway. Btw, that's exactly what OCaml does (string have length, can include nulls, but still end with null bytes, to be passable to C functions).




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

Search: