Hacker News new | past | comments | ask | show | jobs | submit login

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?






The spec says the last cell does not need to end in a tab, so this would be two cells IMO

That's correct

Is the "spec", the rules listed under the "syntax" heading? Or is it the python script? Or something else I missed? Because the python is in conflict with the syntax rules in that the rules say a cell ends with one or more tabs, but the python says a cell can end with the end of the line, even if there are no trailing tabs.

It's rule number 6, which basically makes an exception to rule 1 :)

I think spec tries and fails to translate code implementation into human language. In code cell separator is `\t|`.

That's also correct. In what way does it fail?



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: