Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82010 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56601 invoked from network); 6 Feb 2015 04:23:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2015 04:23:04 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.51 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.51 mail-qa0-f51.google.com Received: from [209.85.216.51] ([209.85.216.51:51716] helo=mail-qa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/82-45146-7A144D45 for ; Thu, 05 Feb 2015 23:23:04 -0500 Received: by mail-qa0-f51.google.com with SMTP id f12so9143482qad.10 for ; Thu, 05 Feb 2015 20:23:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AJb24elF5kSe1cuUcgeS6kzDT+LauOSxLoABZ1Ue57s=; b=H6yPm+VlZO7HJOexCrjWU+/bAXzLfOy6CHbzjwzVUAv5/9WbR4PTm6zvMg/Kz8jBwy a3UWcBEqRzhQHIeNQILJm+XV1dGnkU3V79e19Wnqmb6VpsF/Z38mxmaKNy0wNIPTfwwV Nhgv1xZ5J/uWOcIM63TVcekGCbZ1LUONxToeLUVwSmgWK6aFKYgxoXjcdFmWS6oAbptu PHmjb+87NsxJLXN0R3mfGPp9a8HZNuKtTeWWSyVzOlKmX6kJI12lCn/Kc+8iMPRKGitD zitRetadfKrtaB7tzZQCeLdvPA3KsWGZbCtB8Crhsb/dQuZVFTCUQ7k7N6m3THbyBNSQ xUtQ== MIME-Version: 1.0 X-Received: by 10.229.65.133 with SMTP id j5mr4080754qci.27.1423196580893; Thu, 05 Feb 2015 20:23:00 -0800 (PST) Received: by 10.96.3.168 with HTTP; Thu, 5 Feb 2015 20:23:00 -0800 (PST) In-Reply-To: References: <01d601d04146$6fbda4c0$4f38ee40$@tekwire.net> <020c01d0414b$2c3a1120$84ae3360$@tekwire.net> <022801d0415a$027e0620$077a1260$@tekwire.net> Date: Fri, 6 Feb 2015 11:23:00 +0700 Message-ID: To: "guilhermeblanco@gmail.com" Cc: Dmitry Stogov , =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Yasuo Ohgaki , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Design by Contract From: pierre.php@gmail.com (Pierre Joye) On Fri, Feb 6, 2015 at 11:14 AM, guilhermeblanco@gmail.com wrote: > Hi Pierre, > > Sorry, but you don't. Proposing a simple syntax is the same as not proposing > it. > We can do whatever syntax is proposed, but we need to discuss on how to > handle inheritance, overriding, etc. > None ever discussed that. 2010's patch handled all that nicely. I do > remember however Dmitry had a suggestion to optimize the overall storage of > annotation values, but it got lost in time. I somehow remember he wanted to > store a cached version of reflection class into the class entry and expose > as Class::CLASS or something... I saw this written in another place too... > it got slightly changed over time and we now have it return only its FQCN. Benjamin proposed it and I think it is a good compromise, it can then evolve if necessary or desired.