qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH V8 09/10] qapi script: do not allow string discr


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH V8 09/10] qapi script: do not allow string discriminator
Date: Thu, 27 Feb 2014 15:05:05 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 02/27/2014 04:09 AM, Wenchao Xia wrote:
> From: Wenchao Xia <address@hidden>
> 
> Signed-off-by: Wenchao Xia <address@hidden>
> Signed-off-by: Wenchao Xia <address@hidden>

Double S-o-B.  The commit message is a bit sparse; the one-line summary
mentions what, but for a change like this where you are taking away
functionality, it's also good to mention WHY (hint: enum-based
discriminators provide better type-safety and ensure that future qapi
additions do not forget to adjust dependent unions).

> ---
>  docs/qapi-code-gen.txt                             |    5 +----

Reviewed-by: Eric Blake <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]