Re: [PHP-DEV] [RFC] Interface Default Methods

2023-06-17 Thread David Gebler
On Thu, Jun 15, 2023 at 4:48 AM Levi Morrison via internals < internals@lists.php.net> wrote: > > I am moving my RFC for interface default methods to discussion: > https://wiki.php.net/rfc/interface-default-methods. > > Can I ask, the RFC doesn't say - does your implementation ensure default imple

Re: [PHP-DEV] Expression code blocks

2023-06-17 Thread Rowan Tommins
On 17/06/2023 12:26, Ilija Tovilo wrote: I don't believe blocks for general expressions are that useful in PHP due to the lack of block scoping. Your suggestion to make the block a separate closure could avoid that (as well as the optimizer issue mentioned below) but comes with new issues, like m

Re: [PHP-DEV] [RFC] Interface Default Methods

2023-06-17 Thread Alexandru Pătrănescu
On Thu, Jun 15, 2023, 06:48 Levi Morrison via internals < internals@lists.php.net> wrote: > Hello, PHP Internals, > > I am moving my RFC for interface default methods to discussion: > https://wiki.php.net/rfc/interface-default-methods. > > Thank you for your time. I look forward to productive feed

Re: [PHP-DEV] Expression code blocks

2023-06-17 Thread Ilija Tovilo
Hi Andreas On Fri, Jun 16, 2023 at 9:23 PM Andreas Hennings wrote: > > Hello list, > I don't know if something like this was already proposed in the past, > I did not find anything. > > Sometimes it would be nice to have a code block inside an expression, like > this: > > public function f(strin