Re:Toml: Tom's Obvious, Minimal Language
by tannhaeuser on Saturday July 14, 2018 @02:05AM
(#17529070)
This seems reasonable, but I'd like to add that XML, while certainly not designed as a config language, could be made much more terse by using SGML, the markup metalanguage XML is derived from and of which XML is a subset. SGML has additional constructs for short forms such as tag omission/inference and short references (custom Wiki syntax) targetted at authoring, whereas XML only admits canonical angle bracket markup syntax which is what makes XML verbose and cumbersome for edititing by hand.
Re:Toml: Tom's Obvious, Minimal Language
by simcop2387 on Saturday July 14, 2018 @05:48AM
(#17529623)
While that's all true, in also not aware of any fine compliant sgml parsers in most major languages. That Maude's it have a rather high barrier
Basically, I wanted something that was (1) simple, (2) terse, (3) supported comments, and (4) supported recursive data structures. Requirement (1) eliminated YAML, requirement (2) eliminated XML, requirement (3) eliminated JSON, and requirement (4) eliminated INI. Of the remaining formats, TOML seemed to be the most popular and had the most traction, so I went with that.