On Mon, Jul 25, 2011 at 6:00 PM, Blue Swirl <blauwir...@gmail.com> wrote:
> On Mon, Jul 25, 2011 at 6:55 PM, Avi Kivity <a...@redhat.com> wrote:
>> It's already allowed by the example; there are about 1800 instances in the
>> tree; and disallowing it would lead to
>>
>>    if (a) {
>>        ...
>>    } else {
>>        if (b) {
>>            ...
>>        } else {
>>            if (c) {
>>                ...
>>            } else {
>>                if (d) {
>>                    ...
>>                } else {
>>                    ...
>>                }
>>            }
>>        }
>>    }
>>
>> instead of
>>
>>    if (a) {
>>        ...
>>    } else if (b) {
>>        ...
>>    } else if (c) {
>>        ...
>>    } else if (d) {
>>        ...
>>    } else {
>>        ...
>>    }
>>
>> which is more readable.
>>
>> Signed-off-by: Avi Kivity <a...@redhat.com>
>
> Acked-by: Blue Swirl <blauwir...@gmail.com>

Yes please, I use this too.

Stefan

Reply via email to