Re:A love letter to the CSV format
by adzm on Wednesday March 26, 2025 @01:39PM
(#43484679)
Agreed, much easier to work with, especially if you can guarantee no embedded tabs or newlines. Otherwise you end up with backslash escaping, but that's still usually easier than quotes.
[ Parent
| on HN ]
It's not really easier than CSV if you can guarantee no commas or newlines.
Much easier to require fields not have tabs than not have commas, though.
Re:A love letter to the CSV format
by solidsnack9000 on Wednesday March 26, 2025 @05:28PM
(#43487536)
Parsing escapes is easier than parsing quoted text with field and record separators embedded in it. Every literal newline or literal tab is a separator. One can jump to the thousandth record, for example, just by skipping lines, without looking into the contents.