Received: from eggs.gnu.org ([2001:4830:134:3::10]:56952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn0rQ-0003jX-VV for qemu-devel@nongnu.org; Tue, 28 Apr 2015 04:27:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yn0rJ-0002DD-1P for qemu-devel@nongnu.org; Tue, 28 Apr 2015 04:27:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn0rI-0002D9-Q8 for qemu-devel@nongnu.org; Tue, 28 Apr 2015 04:27:12 -0400 From: Markus Armbruster References: <1428206887-7921-1-git-send-email-eblake@redhat.com> <1428206887-7921-16-git-send-email-eblake@redhat.com> Date: Tue, 28 Apr 2015 10:27:09 +0200 In-Reply-To: <1428206887-7921-16-git-send-email-eblake@redhat.com> (Eric Blake's message of "Sat, 4 Apr 2015 22:07:46 -0600") Message-ID: <87y4lcu082.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v6 15/36] qapi: Document new 'alternate' meta-type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, berto@igalia.co, qemu-devel@nongnu.org Eric Blake 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 Reviewed-by: Markus Armbruster