Re: PHP 5.4 - Meta attribute (aka. Annotations)supportdiscussion

From: Date: Wed, 17 Nov 2010 21:26:46 +0000
Subject: Re: PHP 5.4 - Meta attribute (aka. Annotations)supportdiscussion
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-50309@lists.php.net to get a copy of this message
Now that's something we can agree on :D We can reduce the syntax added to simply being the attribute tag before the standard syntax for a function call/class creation. This means functions can be attributes too (as if that is useful...)! This is a function being used as an attribute attribute functionAttr("test") public function Test() { ... or a class attribute new ClassAttr("Test") public function Test() { ... Does that lower the syntax bar enough? -Alec On 11/17/2010 4:12 AM, Zeev Suraski wrote:
I’m not the only one in this thread repeating himself to make a point :) What I opposed is the notion that ‘everyone wants some sort of meta attribute support’. Maybe I read too much into it but I read it as implying we need something substantial that’s new. Either way, I’m fine with going in this way as long as the high-level-direction of not adding a large amount of syntax is clear. Zeev http://www.mail-archive.com/internals@lists.php.net/msg47732.html you said that before. and this is where the discussion started about the alternative syntax and implementation. you said, that you see the usefulness, you just don't think that it worths the complexity and the new syntax. if that so, then I can't see, why can't we move on from the why is this useful to the how and what should we implement. in the end, it would only gets in to the trunk if the prominent coredevs(as you, Rasmus, etc.) accept it, so I don't know why are you afraid continuing the discussion about this feature.


« previous php.internals (#50309) next »