On 24 May 2012 14:06, Anthony Liguori <anth...@codemonkey.ws> wrote:
> There are very few places where errors can be handled gracefully.  They are
> exceptions and can be treated as such.
>
> I think it's far better for the QOM infrastructure to assert when it detects
> something bad because 99% of the users of QOM do not even attempt to handle
> errors gracefully

Last time I was trying to argue for keeping the "create, set properties,
realize" interface for devices/objects as simple as possible you wanted
it to have an error-return interface rather than asserting...

-- PMM

Reply via email to