On Di, 09.11.21 10:14, Fedora Development ML (devel(a)lists.fedoraproject.org) wrote:
On 08/11/2021 22:24, Lennart Poettering wrote:
> And I think that's a*good* thing: JSON might not be perfect — because
> nothing is —, but it's certainly one of the better designed generic
> data formats around, and it's complexity is absolutely managable.
What about YAML?
Complexity is a scale. YAML is certainly more complex than JSON, given
it's a true superset of it. One generally should prefer the simplest
format – as long as it provides the requirements we have here. The
requirements we have in mind are fulfilled by both YAML and JSON
(i.e. self-descriptiveness, extensibility, well understood, with
established parsers and so on). But there's no requirement we have in
mind that would be fulfilled by YAML but not by JSON as well. Hence
JSON it is, and YAML is not.
Lennart
--
Lennart Poettering, Berlin