3 ms·
Do the people who think JSON should have comments also think the CSV format should have comments?
by oneeyedpigeon 2y ago
Do the people who think JSON should have comments also think the CSV format should have comments?
- Y-bar 2y agoFor my part they are for slightly different use cases. While I seldom see CSV files being used for things like configuration and markup, I often see JSON used. And a lot of times configuration choices require explanations. It's not a binary choice. I am more in favour of JSON comments than I am for CSV comments, but if I were to need them, I would probably use the Emacs style: https://github.com/emacsmirror/emacswiki.org/blob/34edac6f86f834ae01eacf695ca58ca4b04e9cfd/csv-mode.el#L202-L219 https://github.com/emacsmirror/emacswiki.org/blob/34edac6f86...