News for hackers. Stuff that matters.
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
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.
Re:A love letter to the CSV format by tgtweak on Wednesday March 26, 2025 @02:03PM (#43484943)
Csv suffers from similar encoding and platform specific gotchas surrounding newlines and delimiter escaping.
Re:A love letter to the CSV format by caspper69 on Wednesday March 26, 2025 @02:06PM (#43484979)
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.