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 <glo...@nebm.ist.utl.pt> wrote:
> On Wed, 17 Nov 2010 01:54:22 -0000, Stas Malyshev <smalys...@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: guilhermebla...@hotmail.com
São Paulo - SP/Brazil

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to