Received: from eggs.gnu.org ([2001:4830:134:3::10]:44310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abNWo-00040m-2O for qemu-devel@nongnu.org; Thu, 03 Mar 2016 02:18:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abNWk-0003CA-2K for qemu-devel@nongnu.org; Thu, 03 Mar 2016 02:18:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abNWj-0003C6-Sy for qemu-devel@nongnu.org; Thu, 03 Mar 2016 02:18:25 -0500 From: Markus Armbruster References: <1456443528-13901-1-git-send-email-eblake@redhat.com> <1456443528-13901-12-git-send-email-eblake@redhat.com> <87egbsg0qf.fsf@blackfin.pond.sub.org> <56D7716F.7090700@redhat.com> Date: Thu, 03 Mar 2016 08:18:23 +0100 In-Reply-To: <56D7716F.7090700@redhat.com> (Eric Blake's message of "Wed, 2 Mar 2016 16:04:15 -0700") Message-ID: <8737s89ghs.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 11/19] qapi: Add type.is_empty() helper List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Michael Roth Eric Blake writes: > On 03/02/2016 12:04 PM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> And use it in qapi-types and qapi-event. Down the road, we may >>> want to lift our artificial restriction of no variants at the >>> top level of an event, at which point, inlining our check for >>> whether members is empty will no longer be sufficient, but >>> adding a check for variants adds verbosity; in the meantime, >>> add some asserts in places where we don't handle variants. >> >> Perhaps I'm just running out of steam for today, but I've read this >> twice, and still don't get why adding these assertions goes in the same >> patch as adding the helper, or what it has to do with events. > > Okay, will split this into two patches for v3. A better commit message might do. Use your judgement.