3 ms·
I even don't see how it is better. ID,Name,Capital,Area,Tags bc,British Columbia,Victoria,922509,en|western canada vs ###########################
by romanovcode 8y ago
I even don't see how it is better.
ID,Name,Capital,Area,Tags
bc,British Columbia,Victoria,922509,en|western canada
vs
###########################
# Oh, Canada! 10 provinces and 3 territories
#
# see en.wikipedia.org/wiki/Provinces_and_territories_of_Canada
#
# note: key is two-letter canadian postal code
#
# for regions tags see
# en.wikipedia.org/wiki/List_of_regions_of_Canada
bc, British Columbia, Victoria, 922 509 km², en|western canada
In 1.1 I don't see what is what - what is `bc`? What is `en|western canada`? In vanilla CSV you can clearly see what is what because it shows you on top.
Why not just write a CSV formatter?
- Tempest1981 8y agoRight, where are the tag names specified? What if a new column is added, and my reader needs to handle both formats? Also, seems like specification-by-example, unless I’m missing something.
- petepete 8y agoTo be honest, I'd be quite happy if CSV just had a 'frontmatter' block. Sometimes a bit of background info or description of what the data represents or its source is really useful. Removing column headings would be a killer. Although efforts in the past to add type information are misguided, by that point you may as well just use XML.