Re: [RFC] Pre-draft for PipeOp v2
| From: | Christoph M. Becker | Date: | Wed, 20 Sep 2017 17:12:22 +0000 |
| Subject: | Re: [RFC] Pre-draft for PipeOp v2 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100722@lists.php.net to get a copy of this message | ||
On 20.09.2017 at 18:52, Derick Rethans wrote:
> On Wed, 20 Sep 2017, Nikita Popov wrote:
>
>> I think this feature makes very little sense if it's not introduced
>> together with a way of making partial application much more ergonomic than
>> it is now.
>
> What do you mean here by "partial application"?
Partial application is a common concept in functional/applicative
programming languages, which facilitates to get a closure over another
function where some of the parameters are already applied, e.g.
something like (pseudocode):
incr = partial(plus, 1);
print incr(2); // 3
print incr(100); // 101
--
Christoph M. Becker