Re:A love letter to the CSV format
by alkh on Wednesday March 26, 2025 @01:40PM
(#43484686)
The problem with using TSV is different user configuration. For ex. if I use vim then Tab might indeed be a '\t' character but in TextEdit on Mac it might be something different, so editing the file in different programs can yield different formatting. While ',' is a universal char present on all keyboards and formatted in a single way
[ Parent
| on HN ]
Re:A love letter to the CSV format
by marcellus23 on Wednesday March 26, 2025 @03:43PM
(#43486280)
The only situation I can think of where a tab is not a tab, is in a code editor that's been configured (possibly by default) to use spaces instead. But that's an easy enough configuration to change. And certainly wouldn't be a problem for something like TextEdit.
Csv suffers from similar encoding and platform specific gotchas surrounding newlines and delimiter escaping.
Well, back in my day, we used tabs for tabs.
But then some folks came along about 15 years ago screaming about spaces, and they won, so now tabs are 2 or 4 spaces.
The law of unintended consequences strikes again!
Note: not meant to denigrate you space supporters out there.