Re: [RFC] PHP Attributes
| From: | Stanislav Malyshev | Date: | Mon, 25 Apr 2016 18:37:04 +0000 |
| Subject: | Re: [RFC] PHP Attributes | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92749@lists.php.net to get a copy of this message | ||
Hi!
> @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 >> .
--
Stas Malyshev
smalyshev@gmail.com