On Thu, 24 Jun 2021, 18:02 Larry Garfield, <la...@garfieldtech.com> wrote:

> On Wed, Jun 16, 2021, at 11:16 AM, Larry Garfield wrote:
> > Hi folks.  The vote for the Partial Function Application RFC is now
> > open, and will run until 30 June.
> >
> > https://wiki.php.net/rfc/partial_function_application
> >
> > Of particular note, a few people had asked about using ...? instead of
> > ... for the variadic placeholder.  In the end we decided not to explore
> > that, as Nikita explained off-list it was actually more confusing, not
> > less, as it would suggest "placeholder for a variadic" rather than "a
> > placeholder that is variadic."  Otherwise, it's just more typing.  The
> > syntax choices section of the RFC has been updated accordingly.
>
> Since some people still don't grok the use cases, I've written a blog post
> to make the case for them better than a detail-oriented RFC can.
>
> https://peakd.com/hive-168588/@crell/the-case-for-partials-and-pipes-in-php
>
> There has also been some positive Twitter chatter, as well as the level of
> +1s on that post (which is, I think, the highest of any PHP post I've had
> on there, ever), so I think the demand for it is definitely there in the
> ecosystem.  It's just not people who frequent Internals. :-/
>
> I'd say there are definitely people that want to use partials.
>
> --Larry Garfield
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: https://www.php.net/unsub.php


Out of curiosity, what would it take to implement function aliasing in PHP?
To enable a limited form of pipes, like `foo |> bar`.

Olle

Reply via email to