Re: [RFC] Default expression

From: Date: Tue, 27 Aug 2024 07:49:09 +0000
Subject: Re: [RFC] Default expression
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Mon, Aug 26, 2024 at 11:58 PM Bilge <[email protected]> wrote:

> In case it matters, my initial inclination was also to do what some others
> have suggested, and modify the SEND opcodes so that the default is not
> actually looked up using reflection at all, but rather we just send nothing
> to the function and it can use its default as it would normally, but since
> I had the good sense to ask an engine maintainer how they would approach
> this problem, they cautioned me that this was the approach Stas took 10
> years ago
> <https://github.com/php/php-src/compare/master...smalyshev:php-src:skip_params7>,
> that that approach was horrendous (paraphrasing) and they would never
> support something like that (mainly because there's like 11 of them and
> modifying them all would be a complete mess).
>
Interesting. Can you elaborate? There's like 11 of what?

Best,
Jakob


Thread (101 messages)

« previous php.internals (#125307) next »