Marc-André Lureau <marcandre.lur...@gmail.com> writes: > On Mon, Oct 2, 2017 at 5:25 PM, Markus Armbruster <arm...@redhat.com> wrote: >> The QAPI schema parser has always accepted only single-quoted strings, >> even though JSON strings are double-quoted. Accept double-quoted >> strings as well, so you can write strings containing single quotes >> without backslash escapes. >> >> Signed-off-by: Markus Armbruster <arm...@redhat.com> > > What's the motivation to allow both? If we were to switch from single > to double quote only, that would make more sense.
Abandoning single quotes now would require us to touch pretty much every line of code in the schemas. I don't think correcting quotes is worth wrecking git-blame. Sadly, the schema language is neither JSON, nor an established extension of JSON, nor Python. This commit brings the schema language one step closer to a superset of JSON. I feel "homegrown superset" is a slightly less bad idea than "homegrown with large overlap". Naming the schema files .json was in bad taste. > otherwise, patch looks good Ready to upgrade to R-by now? Want me to work more of my rationale into the commit message?