Re: [VOTE] Optional Interfaces
On Thu, Mar 20, 2025, at 11:09 AM, Gina P. Banyard wrote:
> Frankly, the comment from u\phuncky [1] mentioning the possibility of
> bad interactions with default interface methods (something I think is
> more important than this) is reinforcing my opinion that this RFC solve
> the problem in a bad way.
> And another user [2] was basically suggesting my previous solution of
> adding support for type classes/runtime implementation of interfaces.
>
> Best regards,
>
> Gina P. Banyard
>
> [1] https://www.reddit.com/r/PHP/comments/1jbcbtx/comment/mhtpwa2/
>
> <https://www.reddit.com/r/PHP/comments/1jbcbtx/comment/mhtpwa2/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button>
> [2] https://www.reddit.com/r/PHP/comments/1jbcbtx/comment/mhvxo5j/
>
> <https://www.reddit.com/r/PHP/comments/1jbcbtx/comment/mhvxo5j/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button>
I quite like the Rust-ish style, but given PHP's small compilation units and autoloading needs,
I don't know how it could be done. (Someone wiser than I may know of a way, but I cannot think
of one.)
--Larry Garfield
Thread (12 messages)