3 ms·
> Much more programmerly than "1/n" On the other hand, null-terminated strings are avoided by most modern programming languages, which tend to explicitly store
by MaxBarraclough 6y ago
> Much more programmerly than "1/n"
On the other hand, null-terminated strings are avoided by most modern programming languages, which tend to explicitly store the string's length.
- dpedu 6y agoTwitter uses a static buffer size of 280 characters to avoid this problem.
- MaxBarraclough 6y agoI meant the scheme used to indicate it's part of a multi-part message. the 1/n scheme indicates the length of the sequence upfront, whereas the backslash scheme doesn't.
- webmaven 6y ago> the 1/n scheme indicates the length of the sequence upfront, whereas the backslash scheme doesn't. I've seen a variation of the 1/n scheme that literally uses "1/n", "2/n", etc. to avoid specifying the length up front. Usually the end of the sequence isn't indicated in that case.