Re: PHP 5.4 - Meta attribute (aka. Annotations) support discussion
| From: | guilhermeblanco@gmail.com | Date: | Wed, 17 Nov 2010 03:10:31 +0000 |
| Subject: | Re: PHP 5.4 - Meta attribute (aka. Annotations) support discussion | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50283@lists.php.net to get a copy of this message | ||
Hi Gustavo,
Normal instantiation cannot be done.
Here is a sample where it would fail:
new Foo()
class User { ... }
So it must be something different.
[]s,
On Wed, Nov 17, 2010 at 1:07 AM, Gustavo Lopes <glopes@nebm.ist.utl.pt> wrote:
> On Wed, 17 Nov 2010 01:54:22 -0000, Stas Malyshev <smalyshev@sugarcrm.com>
> wrote:
>
>> The problem is not new syntax per se. The problem is new syntax for things
>> that already have old syntax.
>
> This is incontestably false. Although a big portion of the use cases can
> awkwardly use the user-space parsed and interpreted docblocks, I'm more
> interested in the potential for applications that require the engine to
> parse to annotations (like in the patch, not doing it on demand for
> bocblocks) and, for a select few, act upon them.
>
> Your preoccupation with the cost of adding new syntax is reasonable and the
> patch goes too far, but surely we could iron out those details later. Maybe
> even just preceding the class/method/whatever declaration with an annotation
> expressed with normal object instantiation syntax?...
>
> --
> Gustavo Lopes
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Guilherme Blanco
Mobile: +55 (16) 9215-8480
MSN: guilhermeblanco@hotmail.com
São Paulo - SP/Brazil