Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64617 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79697 invoked from network); 7 Jan 2013 00:17:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2013 00:17:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=cpriest@zerocue.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cpriest@zerocue.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zerocue.com designates 67.200.53.250 as permitted sender) X-PHP-List-Original-Sender: cpriest@zerocue.com X-Host-Fingerprint: 67.200.53.250 mail.zerocue.com Received: from [67.200.53.250] ([67.200.53.250:33456] helo=mail.zerocue.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/50-12349-EF31AE05 for ; Sun, 06 Jan 2013 19:17:02 -0500 Received: from [172.17.0.145] (unknown [66.25.151.173]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.zerocue.com (Postfix) with ESMTPSA id 0696212037B; Mon, 7 Jan 2013 00:17:00 +0000 (UTC) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: Cc: PHP internals X-Mailer: iPad Mail (10A523) Date: Sun, 6 Jan 2013 18:16:59 -0600 To: Yahav Gindi Bar Subject: Re: [PHP-DEV] [RFC] Reflection annotations reader From: cpriest@zerocue.com (Clint Priest) Just a thought on this, some other languages support attributes which is sim= ilar but could also allow the engine to use them for things. As a quick exa= mple (roughly based on what I've seen in c#) but applied to PHP use case: class a { [$date(Nullable)] public function foo(DateTime $date) { ... } } -Clint On Jan 6, 2013, at 3:58 PM, Yahav Gindi Bar wrote: > Hi internals! >=20 > In one of the discussions (about the "deprecated" keyword, to be specific)= , > it was been said that adding ability to read doc-comment annotation could > be handy. Personally, I really think it can be great. >=20 > So, I've created an RFC that propose to improve the Reflection extension b= y > adding the ability to read annotations decorated in the doc-comment. >=20 > https://wiki.php.net/rfc/reflection_doccomment_annotations >=20 > What is your opinion about this? >=20 > Regards, > Yahav.