5 ms·
I tend to be wary of semantic white space. It is so easy for some tool or function to screw up your white space and you have a huge change in meaning that may o
by RcouF1uZ4gsC 8y ago
I tend to be wary of semantic white space. It is so easy for some tool or function to screw up your white space and you have a huge change in meaning that may or may not be visually apparent. I tend to prefer having characters like braces or parentheses (s expressions) denote the tree level and white space purely as non-semantic pretty printing.
- breck 8y agoWhat I think was a mistake in the past was using 2 or 4 spaces (or tabs) for semantic indentation. I think it should be 1 space, like Comma-Separated Trees has above, and have the editor indicate the indentation level. In my experience this eliminates a common source of tool-caused indentation bugs.
- pavon 8y agoI can see both sides of the sematic whitespace arguments, but CSV intentionally uses commas as delimiter to avoid the problems caused by using white-space as a delimiter. I'd rather use something that required delimiters (json, s-expr), or one that didn't (YAML, indented TSV) over an odd mix of the two.
- daveFNbuck 8y agoCSV uses commas to avoid the problems of using whitespace for column delimiters, but it still uses whitespace for row delimiters. It's already an odd mix of the two.