[HN Gopher] TPSV, an Alternative to TSV (and CSV)
___________________________________________________________________
TPSV, an Alternative to TSV (and CSV)
Author : ctenb
Score : 13 points
Date : 2025-04-26 17:52 UTC (5 hours ago)
(HTM) web link (chtenb.dev)
(TXT) w3m dump (chtenb.dev)
| Hackbraten wrote:
| Good on you to leverage EditorConfig settings. Almost every
| modern IDE or editor supports it either out of the box or with a
| plug-in.
| helix278 wrote:
| I like that there is plenty of room for comments, and the
| multiline extension is also cool. The backslash almost looks like
| what I would write on paper if I wanted to sneak something into
| the previous line :)
| montroser wrote:
| This is pretty under-specified...
|
| > A cell starts with | and ends with one or more tabs.
| |one\t|two|three
|
| How many cells is this? Seems like just one, with garbage at the
| end, since there are no closing tabs after the first cell? Should
| this line count as a valid row?
|
| > A line that starts with a cell is a row. Any other lines are
| ignored.
|
| Well, I guess it counts. Either way, how should one encode a
| value containing a tab followed by a pipe?
| jasonthorsness wrote:
| The spec says the last cell does not need to end in a tab, so
| this would be two cells IMO
| Hashex129542 wrote:
| We need binary formats. In this era we are capable for it. Throw
| away the text formats.
| bsder wrote:
| Data will always outlive the program that originally produced
| it.
|
| This is why you should almost always use text formats.
| account-5 wrote:
| Text is universally accessible and widely supported. Binary has
| it's benefits, but human facing, it has to be text.
| bvrmn wrote:
| According to spec it's nearly impossible to correctly edit files
| in this format by hand.
| AstroJetson wrote:
| > A row with too many cells has the superfluous cells ignored.
|
| Ummm, how do you figure out what row has too many cells? Can all
| the rows before this one have too few cells?
___________________________________________________________________
(page generated 2025-04-26 23:00 UTC)