nin-jin / tree.d

Tree - simple fast compact user-readable binary-safe extensible structural format
The Unlicense
198 stars 14 forks source link

Student homework? #1

Closed XuTpuK closed 9 years ago

XuTpuK commented 9 years ago

This format is not a character better than JSON, but having even more limits: what is that sh!t "value cannot contain newline"?? Value CAN and WILL contain newline! So if your format doesn't support newlines, dude, just relax and don't fart the air with your so called "format"!

nin-jin commented 9 years ago

value-nodes (aka data-nodes) can not contain new lines, because that uses as data-node terminal. Multiline text must be represented as list of data-nodes. This allows you to safe store binary data and easy to read text data.

nin-jin commented 9 years ago

You can read more in this article: http://habrahabr.ru/post/248147/

demonkoryu commented 9 years ago

Although I find Xutpuks behaviour deplorable, it would be great if you could translate that article to english and include it as part of the documentation in your repo. I've made a request for that: #2

Thanks.

RichardFevrier commented 5 months ago

https://hackernoon.com/tree-ast-which-crushes-json-xml-yaml-toml-etc