[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 00/46] Less clumsy error checking
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH 00/46] Less clumsy error checking |
Date: |
Wed, 24 Jun 2020 18:58:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
On 24/06/20 18:42, Markus Armbruster wrote:
> When the Error API was created, we adopted the (unwritten) rule to
> return void when the function returns no useful value on success,
> unlike GError, which recommends to return true on success and false on
> error then.
I was actually never aware of the GError rule, but I, for one, welcome
our new bool overlords.
Paolo
- Re: [PATCH 35/46] qom: Use return values to check for error where that's simpler, (continued)