6 ms·
>As for including commas in your data, it could just have been managed with a simple escape character like a \, for when there's actually a comma in your data.
by hermitcrab 3y ago
>As for including commas in your data, it could just have been managed with a simple escape character like a \, for when there's actually a comma in your data. That's it.
Not quite. What if there is a \ in your data? Then you have to escape that.
- 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.
- philipwhiuk 3y agoYou still have to solve this in USV.