Member since
Very good proposal but there are bad examples in RFC. RFC should not use strings as callable.
With First-class callable syntax available since 8.1, it would now be possible to write it as below, which is much better then string names of functions:
$result = "Hello World" |> htmlentities(...) |> str_split(...) |> fn($x) => array_map(strtoupper(...), $x) |> fn($x) => array_filter($x, fn($v) => $v != 'O');
Since we have already autocaptures for one liners there should be also option for multiple liners.
This RFC could be useful if in PHP there was no inheritance and traits. But PHP has both traits and inheritance so this should be used.