Daniel P. Berrangé <berra...@redhat.com> writes: > On Sat, Jan 25, 2020 at 11:18:41AM +0100, Markus Armbruster wrote: >> Kevin Wolf <kw...@redhat.com> writes: >> >> > Am 24.01.2020 um 11:27 hat Daniel P. Berrangé geschrieben: >> >> So if we allowed YAML instead of JSON, now we get... >> >> >> >> $ cat qemu.yaml [...] >> >> This is finally something I'd consider to be on a par with the >> >> original QEMU syntax, before we added hierarchical data. You >> >> have the minimal possible amount of syntax here. No commas, >> >> no quotes, no curly brackets, etc. >> > >> > This seems to have the same problems as the QEMU command line (how do >> > you distinguish strings from ints, from bools, from null?). >> >> True: YAML provides only string scalars. > > Actually, YAML provides strings, integers, booleans & nulls, the same > level of typing at JSON, but with added benefit of supporting comments > officially: > > https://rollout.io/blog/yaml-tutorial-everything-you-need-get-started/
You're right. I read section 2.3 Scalars of the YAML spec[*], and neglected to study sections 2.4. Tags and 10.3. Core Schema. [*] https://yaml.org/spec/1.2/spec.html