Re: [Vote] Partial Function Application

From: Date: Sat, 19 Jun 2021 11:42:08 +0000
Subject: Re: [Vote] Partial Function Application
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-114972@lists.php.net to get a copy of this message
On Sat, Jun 19, 2021, at 12:39 AM, Hamza Ahmad wrote: > HI Larry Garfield, > > Do you have a plan to further extend this rfc? I mean, what if one > could typecast place holders? Broadly speaking, what if one could > perform some operations, such as arithmetic, bitwise, and type cast as > said above? > > $foo = bar((type) ?); > $foo = bar(? & 0xFF); > > Best > Hamza Ahmad We have no plans to extend it in that fashion, no. The only follow up I have in mind myself is the pipes RFC. If you want to do inline processing like that on a function call, then I think you are better off using a short lambdas as you already can today. --Larry Garfield

« previous php.internals (#114972) next »