Re: Explicit callee defaults

From: Date: Sat, 27 Jul 2024 12:57:56 +0000
Subject: Re: Explicit callee defaults
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 27/07/2024 13:52, Rob Landers wrote:
On Sat, Jul 27, 2024, at 11:50, Bilge wrote:
On 27/07/2024 10:41, Rob Landers wrote:
This seems like a case for code generation
I don't understand how this has anything to do with code generation. I understand what composer-attribute-collector is doing, and see no application for it (or something like it) here. Could you explain a bit further?
In your example you show how to write code that does what you want, but also that it is annoying to write by-hand. Thus, generating the code instead of writing it by-hand might be better than a new language feature; and there are many things that would benefit from that. — Rob
I understand your point is that preprocessors could solve this problem, and I agree, preprocessors can solve a lot of problems. However, that point seems entirely orthogonal to this discussion. Cheers, Bilge

Thread (11 messages)

« previous php.internals (#124648) next »