Received: from eggs.gnu.org ([2001:4830:134:3::10]:45019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYWrx-00082A-Pg for qemu-devel@nongnu.org; Fri, 11 Apr 2014 04:31:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYWrs-0008BY-3e for qemu-devel@nongnu.org; Fri, 11 Apr 2014 04:31:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYWrr-0008BU-SP for qemu-devel@nongnu.org; Fri, 11 Apr 2014 04:31:24 -0400 From: Markus Armbruster References: <871tx6zeoz.fsf@blackfin.pond.sub.org> Date: Fri, 11 Apr 2014 10:20:00 +0200 In-Reply-To: (Anthony Liguori's message of "Wed, 9 Apr 2014 09:36:24 -0700") Message-ID: <87bnw8nuq7.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] Error propagation in generated visitors and command marshallers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Michael Roth , qemu-devel , Luiz Capitulino , Anthony Liguori , Cole Robinson , Paolo Bonzini Anthony Liguori writes: > The original visiting code was loosely based on ASN1 marshaling code > from Samba which used the "if error, bail out at the top" style of > error handling. > > As use of Error has evolved in QEMU, I agree that the paradigm of > "bail out as soon as you see an error and fail fast" is better so I'd > vote for changing the generated code to do that. Okay, I'll give it a try. Thanks!