I don't think I've ever encountered a common practical programming situation where I wanted null-termination as the convention for strings.
-
-
Replying to @Jonathan_Blow @cmuratori
For an API maybe, but the length is usually the first N bytes. Maybe alloc space at both start and end anyway?
1 reply 0 retweets 0 likes -
Replying to @tom_forsyth @Jonathan_Blow
I would argue no, you never put the length in the first N bytes. It should be separate. I think this is better.
3 replies 0 retweets 0 likes
I think it's likely better both in terms of flexibility _and_ performance.
5:33 PM - 28 May 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.