[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.
However, XML might be overkill as it might be too complex for this particular scenario. XML parsing it's complicated and from time to time there are bugs in those parsers. A simpler format might also get the job done and might be safer. However XML might provide flexibility to scale.
Finally, this is what Torvalds said about XML when someone suggested to use it in git:
> XML is crap. Really. There are no excuses. XML is nasty to parse for humans, and it's a disaster to parse even for computers. There's just no reason for that horrible crap to exist.
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.