Re: [RFC] Reflection annotations reader
| From: | Pierre Joye | Date: | Tue, 08 Jan 2013 22:42:46 +0000 |
| Subject: | Re: [RFC] Reflection annotations reader | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64706@lists.php.net to get a copy of this message | ||
On Tue, Jan 8, 2013 at 10:37 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> Everyone I talked to who implemented annotations in docblocks did it
>> as hack because there is no native support. This is not something that
>> belongs to docblocks. It would be nice if you could take a look at the
>> c# doc, there are really good concepts there.
>
> I know why they did it, and we already discussed that stuff in the last
> annotation discussion. What I mean here is that presenting it as if the
> notion of meaningful comments is completely unheard of in PHP and nobody
> expects it is just wrong. Maybe it was so years ago, but it is
> definitely not true now - de-facto meaningful comments *are* the
> standard now, and have a lot of use, and nobody with any experience is
> surprised by them. Regardless of *why* is it so, it is a fact.
Just like any feature not implemented and created using php scripts.
That does not mean we have to use the same hacks to provide native
annotations support. Really not.
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org