From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbAU-0005XY-3e for qemu-devel@nongnu.org; Mon, 16 Sep 2013 11:56:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLbAP-0003nR-A5 for qemu-devel@nongnu.org; Mon, 16 Sep 2013 11:56:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLbAP-0003nN-2B for qemu-devel@nongnu.org; Mon, 16 Sep 2013 11:56:49 -0400 Message-ID: <52372A48.1040803@redhat.com> Date: Mon, 16 Sep 2013 17:56:56 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20130915172331.GA2821@redhat.com> <5236A5ED.3000804@suse.de> <20130916123303.GA2992@redhat.com> <523722BE.90202@suse.de> <20130916154851.GB4141@redhat.com> In-Reply-To: <20130916154851.GB4141@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qom: helper macro for adding read-only properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Igor Mammedov , Stefan Hajnoczi , =?ISO-8859-1?Q?Andreas_F=E4rber?= , Anthony Liguori , qemu-devel@nongnu.org Il 16/09/2013 17:48, Michael S. Tsirkin ha scritto: > http://sweng.the-davies.net/Home/rustys-api-design-manifesto > > Even then: it will be at best > "5. Do it right or it will always break at runtime." > > We need to switch to APIs at > "9. The compiler/linker won't let you get it wrong." We definitely can get at least to "make check won't let you get it wrong", which is somewhere in the middle. Paolo