Re: [RFC] Default expression
| From: | Chuck Adams | Date: | Mon, 26 Aug 2024 14:39:07 +0000 |
| Subject: | Re: [RFC] Default expression | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125273@lists.php.net to get a copy of this message | ||
On Mon, Aug 26, 2024 at 5:36 AM, Jakob Givoni <[jakob@givoni.dk](mailto:On Mon, Aug 26, 2024 at
5:36 AM, Jakob Givoni <<a href=)> wrote
> "default" should not evaluate to a value before sending it as an argument to the
> function or method.
I have no dog in this fight, but I agree with the above. Plus, having thunks like that also opens up
the gateway to hell^w^w^w^wmany other possibilities such as Scala-style lazy arguments, futures, who
knows what else…
—c