Den 2021-06-07 kl. 21:00, skrev Larry Garfield:
Hi folks. Me again.
A year ago, I posted an RFC for a pipe operator, |>, aka function concatenation. At the
time, the main thrust of the feedback was "cool, like, but we need partial function
application first so that the syntax for callables isn't so crappy."
The PFA RFC is winding down now and is looking quite good, so it's time to
revisit pipes.
https://wiki.php.net/rfc/pipe-operator-v2
Nothing radical has changed in the proposal since last year. I have updated it
against the latest master. I also updated the RFC to use more examples that
assume PFA, as the result is legit much nicer. i also tested it locally with a
combined partials-and-pipes branch to make sure they play nicely together, and
they do. (Yay!) Assuming PFA passes I will include those tests in the pipes
branch before this one goes to a vote.
Thanks! I have been waiting for this :)
r//Björn Larsson
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php