Re: [RFC] PHP Attributes
| From: | Stanislav Malyshev | Date: | Mon, 25 Apr 2016 18:40:34 +0000 |
| Subject: | Re: [RFC] PHP Attributes | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-92750@lists.php.net to get a copy of this message | ||
Hi!
> a class/property/method that has annotations, it NOT inherit
> annotations/attributes by default. However, by adding an annotation of
>
> <<__inherit>>
>
> (Or some other internal-reserved keyword, I don't have strong feelings
> on what it is) then the engine will automatically give you all the
> annotations off of the parent, and union them with whatever additional
> ones you add.
Then it makes no sense to ban repeating annotations - because that's
what we effectively are doing here. Also, this assumes all annotations
are either of inheritable kind or not, and these two categories can
never be combined.
--
Stas Malyshev
smalyshev@gmail.com