Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82008 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53562 invoked from network); 6 Feb 2015 04:14:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2015 04:14:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.177 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.213.177 mail-ig0-f177.google.com Received: from [209.85.213.177] ([209.85.213.177:57141] helo=mail-ig0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/D1-45146-4BF34D45 for ; Thu, 05 Feb 2015 23:14:45 -0500 Received: by mail-ig0-f177.google.com with SMTP id z20so5164170igj.4 for ; Thu, 05 Feb 2015 20:14:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=uhSFG7P+E+XLgS5f3tAr64LCfOgUOtUE4Nx4EKczwRs=; b=KAv5H5nu29JQNjZ5sGQRjAfE1VfE/IDQYZTEciKDSzEZxa5lykZ+GyG6AqWXKPqpHY VoZfHxRaLbhJywsZuJCOvi0g4/darChNhEPNpdKz6imzvZHus3PycFzwJXzx3VTrw3yY GF5J8C7Fcv+NL4ZXEXeQcUrqu8AbugEf4Pf8oUSraiVUvWWt+T0z25uywOC9VMXCOUBB BJmr00CM+571woimrtWQ7yiJzqZ1giq9DCmT0dNDS2mzmpXNf0osvj1x9FgzU5oggoOu Q/l6RGKxkGlkSbV7IVFGzKg6q2HfCyVhVgK31PFkNnY+1I3o2OIL4wEZrvQ1ODVRH3PA GpuQ== X-Received: by 10.50.112.98 with SMTP id ip2mr303672igb.15.1423196081911; Thu, 05 Feb 2015 20:14:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.238.75 with HTTP; Thu, 5 Feb 2015 20:14:20 -0800 (PST) In-Reply-To: References: <01d601d04146$6fbda4c0$4f38ee40$@tekwire.net> <020c01d0414b$2c3a1120$84ae3360$@tekwire.net> <022801d0415a$027e0620$077a1260$@tekwire.net> Date: Thu, 5 Feb 2015 23:14:20 -0500 Message-ID: To: Pierre Joye Cc: Dmitry Stogov , =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= , Yasuo Ohgaki , PHP internals Content-Type: multipart/alternative; boundary=047d7b414162e87ffd050e63a89d Subject: Re: [PHP-DEV] Design by Contract From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --047d7b414162e87ffd050e63a89d Content-Type: text/plain; charset=UTF-8 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. []s, On Thu, Feb 5, 2015 at 11:10 PM, Pierre Joye wrote: > On Fri, Feb 6, 2015 at 11:08 AM, guilhermeblanco@gmail.com > wrote: > > Hi all, > > > > I already said before and I'm happy to say it again... > > Whenever you feel ready to get true, complete Annotations into core, just > > tell me and I'll be ready to work on previously suggested Annotations in > > sync with current internals. > > We are, with the simplified syntax we discussed last time (have to dig > the archive) > > > Cheers, > > > > On Thu, Feb 5, 2015 at 11:00 PM, Pierre Joye > wrote: > >> > >> On Thu, Feb 5, 2015 at 11:36 PM, Dmitry Stogov wrote: > >> > phpdoc is annotation as well, but to split it into specific attributes > >> > we > >> > have to write specialized parsers. > >> > Other languages support annotation or attributes that may be used more > >> > easily. > >> > > >> > http://docs.hhvm.com/manual/en/hack.attributes.php > >> > >> Exactly, phpdoc is used as annotation (or comments with some similar > >> syntax) but is definitively not aimed to be annotations. > >> > >> -- > >> Pierre > >> > >> @pierrejoye | http://www.libgd.org > >> > >> -- > >> PHP Internals - PHP Runtime Development Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > > > > > > -- > > Guilherme Blanco > > MSN: guilhermeblanco@hotmail.com > > GTalk: guilhermeblanco > > Toronto - ON/Canada > > > > -- > Pierre > > @pierrejoye | http://www.libgd.org > -- Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --047d7b414162e87ffd050e63a89d--