Re: [RFC] Attributes v2
| From: | Mike Schinkel | Date: | Tue, 10 Mar 2020 11:46:28 +0000 |
| Subject: | Re: [RFC] Attributes v2 | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108943@lists.php.net to get a copy of this message | ||
> On Mar 10, 2020, at 7:36 AM, Rowan Tommins <rowan.collins@gmail.com> wrote:
> I think that applies to our case equally: any punctuation or keyword is
> just a separator between the main function declaration and the specific
> attribute being applied. Having to write "attribute Sealed" would be like
> having to write "visibility public"; as much as possible, we want "Sealed"
> to be the keyword, and the rest of the syntax to just be formatting.
No, you are making a flawed comparison.
There are only three (3) visibility modifiers in PHP whereas there are practically *infinite*
potential attribute classes.
-Mike