In my experience, tying your data format to a programming language is a mistake you most likely will pay for later. For example, when you need access to that data from a different programming language.
I'd say a tool-command format is a distinct and very good syntax for arbitrary data representation. The input consists of lines; each line starts with a command name, followed by optional arguments. There is some continuation syntax to wrap long arguments. The order of lines matters because each line is executed with its argument by some handler; the handler may modify the execution context. Aside from the command name there is no syntax other than whitespace. And since it quietly accumulates the context it gets very compact too.
Comments (20) 8 threads
Earlier commentsIf you need to access the data from a different language, you just load Lua in the other language.
There are a couple of snippets here that refer to it (search for @track):
https://www.lua.org/history.html
All comments shown.
Couldn't load more comments. Check your connection and try again.