File: code/delimiters_must_die [Diff]
-- a/code/delimiters_must_die++ b/code/delimiters_must_die
@@ -64,6 +64,14 @@
People will never ever need ASCII 0 in their strings! I assure you! Let's use it as delimiter. No other options.
h2. Bytesize delimiting.
Ok, we have four bytes for that. We won't ever need more.
Ok, we have four-byte length field here. Why would ever anybody want to delimit more than 4294967296 bytes? And if human looks at our format, we can tell him to go fuck himself.
h2. Tolerable delimiting
Is implemented in "JSON":http://www.json.org/. It uses backslashes plus very limited set of what can follow them. The format is quite readable and writeable by humans and parser-friendly. And also its page has nice graphics, I'd like to be able to make such myself.
@@ -86,7 +94,7 @@
Lines _start_ with \n, there is single space after numbers, numbers consist of 0-9.
So, to summarize it: very strict format, *NO* escaping, taboo *OR* skip-n-bytes delimiting. bytesize delimiting with no fixed lengths.
This kind of escaping is implemented in my serialization format called [[transfer]].