by pwinnski · 5y ago · 0 comments
If you think you can do better than CSV, let's see your proposal. Hint: you probably can't, and if you could, you probably couldn't get Excel to export it, so you still probably can't.
"The status quo is bad, more recent popular formats aren't good enough either, but I don't actually have a specific proposal that's better than all of the above" is a lot faster to read than that article, and says the same thing.
I've got one! It's basically the same as regular CSV, but everything is UTF-8, the columns and lines are delineated by dedicated UTF-8 "delineator" codepoints (if they aren't defined in the spec, find reasonable surrogates and use them), and therefore nothing ever needs to be escaped.
More human readable than regular CSV, less prone to error and just as easy to write to in a for loop (easier, in fact, as there are no escapes).
Depending on how Excel handles delineators, it should be able to import it too.
Replacing flexible standards with more-rigid standards is always really hard.
[Alt]-[(NumPad:)0031]
[Alt]-[(NumPad:)0030]
Yeah, not quite dedicated keys. But once you've typed in one of each, you can copy and paste. Somewhat better text editors hopefully display them in some fashion (e.g, NotePad++ shows them as little black blobs labelled "FS" / "GS" / "RS" / "US").
But yes, nothing is technically insurmountable. It's just hard to imagine a format that requires such efforts overtaking a format that does not.
Replacing a flexible standard with a more-rigid standard is really, really hard.