Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I mean compared to structured file formats like JSON, YAML, TOML, XML and whatever (including binary such).

Obviously it's not harder to parse than a PDF.



Uh, "plain text" is not a pair of words that I would use to describe "structured data" at all. I don't even know what someone would intend to mean in such a situation.

If someone told me they needed me to parse a "plain text" file, to me it sounds like they'd want me to provide some statistics on an unstructured text blob.

Free form text does have properties, such as byte length, character count, word count, line count, sentence count, paragraph count, and so on. Most of which is simply variations on whitespace delimiters.

But an individual plain text file... all on its own? Could be a shell script? Could be a newspaper clipping? Could be a dictionary file? Could be an array of XYZ vertices, edges and faces? Could be all of the above, and an email signature at the end?

Someone tells me: "here have this plain text object," and I presume it is a monolithic blob of ASCII, if I'm lucky, and maybe it's War and Peace or Moby Dick expressed in emoji if I'm not.


>Uh, "plain text" is not a pair of words that I would use to describe "structured data" at all. I don't even know what someone would intend to mean in such a situation.

Well, most would agree markdown is a plain text format for example, but it's not totally unstructured.

Still it's a bitch to parse compared to something like JSON.




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

Search: