by br1n0 · 9y ago · 0 comments
{"type":"event", "name":"gamma_size", "arg": {"name":"size","type":"uint" }
Wayland is not the web. None of these technologies are involved in Wayland.
>{"type":"event", "name":"gamma_size", "arg": {"name":"size","type":"uint" }
Your example is more verbose and harder to read... XML is definitely misused in many applications where JSON is appropriate but this is not one of them.
[gamma_size]
type = "event"
args = [
{ name = "size", type = "uint" }
]
XML isn't what I would choose here because there's no need for text markup. TOML is both simpler and friendlier than XML in this case.I do agree that it doesn't matter much.
The author has said as much: https://github.com/toml-lang/toml/issues/330
Overall, XML is too verbose; in particular, the text markup features of XML are needless complexity.