Member since
Looks cool. Hope it does not have weird problems and will not affect performance.
This rfc is needed to remove setters and getters. I hope that ability of use property hooks will be added to doctrine cause I hate entities with 1k lines of code just with setters and getters.
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.