Re: [RFC] PHP Attributes
| From: | Rowan Collins | Date: | Mon, 25 Apr 2016 20:04:32 +0000 |
| Subject: | Re: [RFC] PHP Attributes | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92753@lists.php.net to get a copy of this message | ||
On 25/04/2016 19:37, Stanislav Malyshev wrote:
Hi!No, but this is valid: @atrr(); function foo() { ... } That's perhaps a little too close for comfort...? Regards, -- Rowan Collins [IMSoP]@attr() - is a valid "silenced" call to function named "attr". This syntax can't be reused.Not valid if it's in the middle of class definition, and not valid in form of: @attr() function foo() { ... } This is not a valid PHP syntax now. So I'm not sure why it can't be used. << is an operator too and so is >> .