raszekster's avatar

raszekster

raszekster

Member since

80

Total Reputation

3

Total Arguments

4

Total Votes for Arguments

Arguments and votes

1

Very good proposal but there are bad examples in RFC. RFC should not use strings as callable.

Share:
Read the RFC: The Pipe Operator raszekster avatar
raszekster
voted yes
83

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');
Share:
Read the RFC: The Pipe Operator pronskiy avatar
pronskiy
voted yes
4

Since we have already autocaptures for one liners there should be also option for multiple liners.

Share:
Read the RFC: Short Closures 2.0 raszekster avatar
raszekster
voted yes
1

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.

Share:
Read the RFC: Interface Default Methods raszekster avatar
raszekster
voted no
RSS Feed Contribute Watch on YouTube Our License
© 2024 RFC Vote. This project is open source. Contribute and collaborate with us!