Re: [RFC] Interface Default Methods
| From: | Levi Morrison | Date: | Fri, 16 Jun 2023 23:28:41 +0000 |
| Subject: | Re: [RFC] Interface Default Methods | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120608@lists.php.net to get a copy of this message | ||
On Thu, Jun 15, 2023 at 5:41 PM Levi Morrison via internals
<internals@lists.php.net> wrote:
>
> On Thu, Jun 15, 2023 at 3:37 PM Ilija Tovilo <tovilo.ilija@gmail.com> wrote:
> > > I am moving my RFC for interface default methods to discussion:
> > > https://wiki.php.net/rfc/interface-default-methods.
> >
> > The RFC doesn't mention default implementations for static methods.
> > I'm not sure there's a use case but it might make sense to explicitly
> > mention whether they are supported.
>
> Interesting point. I sometimes forget that
static is allowed in
> interfaces. When I rebase the branch, I'll check it out. I assume it
> works at a technical level without issues. If that's true, then absent
> further evidence, I would say to allow it.
I have rebased my branch on the latest master, and added a test case
that default methods work with static methods on interfaces. They do.
If you can think of any interesting test cases to add in that space,
feel free.
PR: https://github.com/php/php-src/pull/11467