News for hackers. Stuff that matters.
Re:C Strings and my slow descent to madness by initplus on Thursday April 06, 2023 @06:21PM (#35475322)
You can fix this issue by using a variable width integer encoding for the size.
Re:C Strings and my slow descent to madness by burntsushi on Thursday April 06, 2023 @06:43PM (#35475522)
It might fix that particular issue, but you still have the same problem that NUL terminated strings have: it's not possible to cheaply create views/slices of a string using the same type.