Re: [RFC] Reflection annotations reader

From: Date: Tue, 08 Jan 2013 20:52:35 +0000
Subject: Re: [RFC] Reflection annotations reader
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
I agree with this very much.

In Doctrine we used Docblocks only because its the only means of
implementing something that closely resembles native annotation support. I
would be happy if we would have a Docblock parser in SPL, so that all
libraries can agree on using its syntax, however ultimately its just
missing the point that language level annotations would still be very handy.

greetings,
Benjamin


On Tue, Jan 8, 2013 at 2:46 PM, Pierrick Charron <[email protected]>wrote:

> On 8 January 2013 03:55, Stas Malyshev <[email protected]> wrote:
> > On the contrary, plenty of implementations means there's a need in this
> > functionality, and it might be a good idea to have one standard
> > implementation if it can cover like 80% of use cases.
>
> I agree, there is a need in this functionality, but all those userland
> implementations were at the first place made because this
> functionality was not part of the language. I think docblocks is not
> the solution, doc blocks are just comments, and I would expect any
> code to work the same way if I remove my comments.
>
> Pierrick
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Thread (78 messages)

« previous php.internals (#64701) next »