[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 17/18] validator.py script
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [RFC 17/18] validator.py script |
Date: |
Tue, 17 Apr 2018 12:53:20 -0300 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Tue, Apr 17, 2018 at 05:17:13PM +0200, Paolo Bonzini wrote:
> On 17/04/2018 16:42, Eduardo Habkost wrote:
> >> Should we introduce yet another markup language into QEMU? (pardon the
> >> pun).
> > Fair question. What are the existing markup languages in QEMU we
> > could use?
> >
> > JSON is an option, but I believe YAML is more readable.
>
> Isn't YAML actually a superset of JSON that adds "magic indent", bullet
> lists and a bunch of other stuff that you're not using? You can still
> use JSON to express a complicated dictionary for example.
Things I like about YAML in comparison to JSON:
- Comments
- No need to count number of closing brackets or worry about
trailing commas
- Convenient ways to write long strings without
"\\"another layer of escaping syntax\\""
JSON is not a language for humans, YAML is.
--
Eduardo