3 ms·
> Not quite. What if there is a \ in your data? Then you have to escape that. No problem, any character following a `\` is a literal character. `\\` => literal
by lelanthran 3y ago
> Not quite. What if there is a \ in your data? Then you have to escape that.
No problem, any character following a `\` is a literal character. `\\` => literal `\`. `\,` => literal comma. `\a` => literal `a`, etc.
Parsing this is easy, generating it is easy, and there is only one rule to remember for humans reading or generating it.
Each rule added for parsing is one more added complexity and point of failure.