On Tue, Mar 10, 2020 at 5:30 PM Mike Schinkel <[email protected]> wrote:

> > On Mar 10, 2020, at 11:28 AM, Benjamin Eberlei <[email protected]>
> wrote:
> >
> > Just to make sure you don't run in circles in this discussion thread
> here, even when syntax is not fixed yet, it's not going to be a syntax
> where the attributes are suffixed after the declaration. It would maybe
> some other characters like %[Attr].
> >
>
> It is your RFC so you are the arbiter.
>
> One final on syntax:  Can I suggest you consider @:Attr?
>
> -Mike
> P. S. Did you see the question on interfaces?
>
>
No I missed it. Attributes work on interfaces, but they are not inherited
to parent classes. This is similar to how a class implementing an interface
may have different docblocks. You can use the reflection api to get to
interfaces from a class and check for their attributes there. For traits
the attributes get copied into the using class.

Reply via email to