News for hackers. Stuff that matters.
Re:Show HN: Comma Separated Values (CSV) to Unicode Separate... by hermitcrab on Tuesday March 12, 2024 @11:39AM (#39680822)
>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.

Re:Show HN: Comma Separated Values (CSV) to Unicode Separate... by lelanthran on Tuesday March 12, 2024 @12:33PM (#39681472)
> 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.

Re:Show HN: Comma Separated Values (CSV) to Unicode Separate... by philipwhiuk on Tuesday March 12, 2024 @01:29PM (#39682309)
You still have to solve this in USV.