I think my reply ( http://article.gmane.org/gmane.comp.php.devel/63203 ) addresses this. It doesn't introduce any new language constructs per se. You could make it even more standard and clear by adding "new" after "annotation".

Just as a thought: instead of annotation, metadata could also be used as the keyword. I am interested to see what you, Zeev and the others say about this syntax because I believe it strikes a balance that allows for metadata usage without messing with the syntax.

I am all for annotations/metadata, but I can certainly see the argument about syntax: we want to strive for consistency in syntax looking forward, particularly since PHP isn't well known for consistency (look at the string and array standard function names :D ).

-Alec

On 11/16/2010 8:46 PM, Stas Malyshev wrote:
Hi!

Poll will be opened for voting for 7 days (1 week) starting from now.
Poll will be closed next Monday at 5pm GMT.
Question: Does PHP need meta attribute support?

Unless there's a simple way of describing it - without adding a lot of
complexity and introducing multiple new syntax constructs - no. Do it in
userspace.


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

Reply via email to