|
From: | Markus Armbruster |
Subject: | Re: [Qemu-devel] [PATCH v6 15/36] qapi: Document new 'alternate' meta-type |
Date: | Tue, 28 Apr 2015 10:27:09 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Eric Blake <address@hidden> writes: > The next patch will quit special-casing "'union':'Foo', > 'discriminator':{}" and instead use "'alternate':'Foo'". > > Separating docs from implementation makes it easier to focus > on wording without holding up code. In particular, making > alternate a separate type makes for a nice type hierarchy: > > /-------- meta-type ------\ > / | \ > simple types alternate complex types > | | | | > built-in enum type(struct) union > | \ / / \ > numeric string simple flat > > A later patch will then clean up 'type' vs. 'struct' > confusion. > > Signed-off-by: Eric Blake <address@hidden> Reviewed-by: Markus Armbruster <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |